Tutorial by Examples: ci

import asyncio async def hello_world(): print('Hello World') loop = asyncio.get_event_loop() loop.run_until_complete(hello_world()) loop.close()
from chempy import balance_stoichiometry # Main reaction in NASA's booster rockets: reac, prod = balance_stoichiometry({'NH4ClO4', 'Al'}, {'Al2O3', 'HCl', 'H2O', 'N2'}) from pprint import pprint pprint(reac) {'Al': 10, 'NH4ClO4': 6} pprint(prod) {'Al2O3': 5, 'H2O': 9, 'HCl': 6, 'N2': 3} ...
from chempy import Equilibrium from sympy import symbols K1, K2, Kw = symbols('K1 K2 Kw') e1 = Equilibrium({'MnO4-': 1, 'H+': 8, 'e-': 5}, {'Mn+2': 1, 'H2O': 4}, K1) e2 = Equilibrium({'O2': 1, 'H2O': 2, 'e-': 4}, {'OH-': 4}, K2) coeff = Equilibrium.eliminate([e1, e2], 'e-') coeff [4, -5...
Cashier Laravel Cashier provides an expressive, fluent interface to Stripe's and Braintree's subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping...
The following example illustrates use of the bitwise NOT (~) operator on decimal numbers. To keep the example simple, decimal number 3.5 will be used, cause of it's simple representation in binary format. let number = 3.5; let complement = ~number; Result of the complement number equals to -4;...
<p> Order sum: <span th:text="${#numbers.formatDecimal(orderSum, 0, 'COMMA', 2, 'POINT')}">1,145,000.52</span> </p>
The most basic implementation of a union-find data structure consists of an array parent storing the a parent element for every element of the structure. Following these parent 'pointers' for an element i leads us to the representative j = find(i) of the set containing i, where parent[j] = j holds....
In find and findstr, there are some special characters that require some caution on it. FIND There is only one character that needs escaping - " quote. To escape it, simply add another quote next to it. So " becomes "". Pretty simple. FINDSTR Findstr comes with plenty of ...
FOR /F In a FOR /F statement, some characters needs escaping, here a list(taken and edited from Rob van der Woude's page) CharacterEscaped ResultRemarks'^'Only needed in FOR /F's brackets, unless usebackq is specified.`^`Only needed in FOR /F's brackets, when usebackq is specified,^,┒;^;┃=^=┣ Must...
Here is a list of other special character(s), that require(s)/may need escaping, but not mentioned above. CharacterEscaped ResultRemarks%%%[LF]^[LF]This trick is metioned by Mark Stang in the alt.msdos.batch news group.
Once the installation is finished click the Finish button. Now it asks if you want to copy your packages fro the older version of R to Newer version of R. Once you choose yes all the package are copied to the newer version of R. After that you can choose if you still want to keep the old package...
Refer the example here: https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample Azure AD B2C Azure AD B2C is a cloud identity management solution for your web and mobile applications. It is a highly available global service that scales to hundreds of millions of identities. Mobile app - ADAL...
Camel's DSL (Domain Specific Language) is one of the features that makes Camel standout from other Integration frameworks. While some other frameworks also feature a DSL concept, typically in the form of a XML file, the DSL was in such cases always a custom based language. Camel offers multiple DSL...
php -S localhost:80 -t project/public router.php PHP 7.1.7 Development Server started at Fri Jul 14 15:22:25 2017 Listening on http://localhost:80 Document root is /home/project/public Press Ctrl-C to quit.
This returns a map without the key-value pairs for the keys mentioned in the function argument. It can be used to remove information from existing map. (dissoc {:a 1 :b 2} :a) ;; {:b 2} It can also be used for dissocing multiple keys as: (dissoc {:a 1 :b 2 :c 3} :a :b) ;; {:c 3}
LibGDX is designed in a way that you can write the same code and deploy it on several different platforms. Yet, there are times when you want to get access to platform specific code. For an instance, if you have leaderboards and achievements in your game, you may want to use platform-specific tools ...
These locators should be used as a priority when possible, because they are more persistent to changes in an application then locators based on css or xpath, which can easily break. Binding locator Syntax by.binding('bind value') Example View <span>{{user.password}}</span> <s...
Excel specifications and limits (Excel 2016-2013, Excel 2010, Excel 2007)
The Boolean operators || and && will "short circuit" and not evaluate the second parameter if the first is true or false respectively. This can be used to write short conditionals like: var x = 10 x == 10 && alert("x is 10") x == 10 || alert("x is not 1...
<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFile</key> <string>Icon file for associated file</string> <key>CFBundleTypeName</key> <string>My file format</string>...

Page 41 of 42