-
Module: a file containing Python definitions and statements
-
File name is the module name, suffix
.py
-
Module's name available as the global variable
__name__
# suppose we created a module called fib, which has two function fib and fib2 # fib prints Fibonacci series up to n # fib2 returns Fibonacci series up to n
-
str.format()
: control formatting of output -
str()
: return representations of values, which are human-readable -
repr()
: genertate representations, readable by the interpreter -
Many values have the same representation using either function. However, strings and float point numbers have distinct representations
s = 'Hello, world.'
-
class members (including data members) are public
-
all member functions are virtual
-
method function,
- declared with an explicit first argument representing the object
- the object is provided implicitly by the function call
-
classes are objects
-
Built-in types can be used as base classes
-
Operator overloading supported
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
Sparked from this twitter conversation when talking about doing fast async rendering of declarative UIs in Preact
These examples show how it's possible to starve the main event loop with microtasks (because the microtask queue is emptied at the end of every item in the event loop queue). Note that these are contrived examples, but can be reflective of situations where Promises are incorrectly expected to yield to the event loop "because they're async".
setTimeout-only.js
is there to form a baselinechained-promises.js
shows the event loop being starved when many microtasks are queued at oncepromises-returning-promises.js
shows chained.then()
calls starving the event loop
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.
- get both the git and github plugin
- http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin