Google C++ Style GuideThere are some com- mon exceptions, such as unittests and small .cc files containing just a main() function. Correct use of header files can make a huge difference to the readability, size and performance header should have header guards and include all other headers it needs. If a template or inline function is declared in a .h file, that same header should provide its definition. The definitions of these possible. Just #include the headers you need. A “forward declaration” is a declaration of a class, function, or template without an associated definition. • Forward declarations can save compile time, as0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Python Style GuideDefault Argument Values Properties True/False evaluations Deprecated Language Features Lexical Scoping Function and Method Decorators Threading Power Features 1 Python Style Rules Semicolons Line length Parentheses situations where changing the argument names is infeasible, you can mention them at the beginning of the function. For example: def foo(a, unused_b, unused_c, d=None, e=None): _ = d, e return a Imports link Cons: May cause the control flow to be confusing. Easy to miss error cases when making library calls. 4 Decision: Exceptions must follow certain conditions: • Raise exceptions like this: raise MyException('Error0 码力 | 30 页 | 94.81 KB | 1 年前3
OpenAI 《A practical guide to building agents》Python 1 2 3 4 5 6 7 8 8 10 11 12 from import def agents Agent, WebSearchTool, function_tool @function_tool save_results(output): db.insert({ : output, : datetime.time()}) return that lets agents operate until an exit condition is reached. Common exit conditions include tool calls, a certain structured output, errors, or reaching a maximum number of turns. 14 A practical guide tool is invoked, defined by a specific output type 02 The model returns a response without any tool calls (e.g., a direct user message) Example usage: Python 1 Agents.run(agent, [UserMessage( )]) "What's0 码力 | 34 页 | 7.00 MB | 6 月前3
Google's R Style Guideby a space; inline comments need two spaces before the # 12. Function Definitions and Calls 13. Function Documentation 14. Example Function 15. TODO Style: TODO(username) Summary: R Language Rules 1 lower case letters and words separated with dots (variable.name), but variableName is also accepted; function names have initial capital letters and no dots (FunctionName); constants are named like functions CalculateAvgClicks BAD: calculate_avg_clicks , calculateAvgClicks Make function names verbs. Exception: When creating a classed object, the function name (constructor) and class should match (e.g., lm). • kConstantName0 码力 | 8 页 | 47.42 KB | 1 年前3
Game Development for Human Beings3 SpaceHipster.Boot = function(){}; 4 5 //setting game configuration and loading the assets for the loading screen 6 SpaceHipster.Boot.prototype = { 7 preload: function() { 8 //assets we'll courses for high schools ©2016 Zenva Pty Ltd all rights reserved Page 10 11 }, 12 create: function() { 13 //loading screen will have a white background 14 this.game.stage.backgroundColor = {}; 2 3 //loading the game assets 4 SpaceHipster.Preload = function(){}; 5 6 SpaceHipster.Preload.prototype = { 7 preload: function() { 8 //show logo in loading screen 9 this.splash = this0 码力 | 472 页 | 8.46 MB | 10 月前3
The Gimp User’s Manual version 1.0.1674 Using Tablets With Gimp 674 PART VIII Script-Fu Chapter 42: Script-Fu: Description And Function....... 687 Script-Fu? 688 Standalone Scripts 689 Image-Dependent Scripts 692 Chapter and code. SYMBOLS Not A Standard Part Of The Gimp Distribution This symbol will appear when a function or filter is not part of the standard distribution of Gimp. This means that you have to download or some other unpleasantness will happen! Beware Of Bugs! This sign indicates that a filter or function is still in development stage, and that it may suffer from bug problems. Install or use functions0 码力 | 924 页 | 9.50 MB | 1 年前3
Krita 5.2 Manualwithin arm’s reach. The brushes are determined by tag, and pressing the lower-right configure button calls a drop-down to change tags. This allows you to tag brushes in the preset docker by workflow, and quickly assistant system allows you to have a little help while drawing straight lines or circles. They can function as a preview shape, or you can snap onto them with the freehand brush tool. In the tool options classes into Python as simple and straightforward as possible. For example, you can see that the function filters() returns a QStringList. However, SIP converts those QStringLists into regular python list0 码力 | 1502 页 | 79.07 MB | 1 年前3
Krita 5.2 브로셔within arm’s reach. The brushes are determined by tag, and pressing the lower-right configure button calls a drop-down to change tags. This allows you to tag brushes in the preset docker by workflow, and quickly assistant system allows you to have a little help while drawing straight lines or circles. They can function as a preview shape, or you can snap onto them with the freehand brush tool. In the tool options classes into Python as simple and straightforward as possible. For example, you can see that the function filters() returns a QStringList. However, SIP converts those QStringLists into regular python list0 码力 | 1531 页 | 79.11 MB | 1 年前3
Krita 5.2 マニュアル
overlay, and to 5% opacity. Then flatten the whole image and convert it to 8bit. The pattern will function as dithering giving a smoother look to gradients. If it's a gray-scale image, convert it to gray-scale because it is applying a gamma function to the TRC or transfer function of an image. The TRC in this case being the Tone Response Curve or Tone Reproduction Curve or Transfer function (because color management making the image too dark. Providing such a transform and allowing you to configure it is the prime function of color management. Between different view and display transforms, there’s also a difference in0 码力 | 1591 页 | 79.16 MB | 1 年前3
Apache OFBiz Developer Manual Release 18.12reach and the calling webapp name to the sendJWT() Ajax function. 3. The sendJWT() Ajax function calls the loadJWT() Ajax function which in turn calls the CommonEvents::loadJWT method through the common creates a JWT containing the userLoginId, and returns it to the loadJWT() Ajax function. 5. Then the sendJWT() Ajax function sends an Authorization header containing the JWT to the URL 7 to reach. At0 码力 | 53 页 | 1.52 MB | 1 年前3
共 448 条
- 1
- 2
- 3
- 4
- 5
- 6
- 45













