Will download all artifacts including sample answers.conf file into a local
directory for inspection and/or modification. If the current application has external
dependencies on other nulecule applications, it will recursively unpack the nulecule dependencies
as well. Possible destination is /var/atomicapp/<uniquedirname>. Same for all providers.
| if (Meteor.isServer) { | |
| /* Use Fibers/Future */ | |
| var Future = Npm.require('fibers/future'); | |
| /* Async Method */ | |
| function generatePDF(id, options, callback){ | |
| check(id, String); | |
| check(options, Object); |
| upstream odoo9_xmlrpc { | |
| server <xmlrpc address>; | |
| } | |
| upstream odoo9_longpolling { | |
| server <longpolling address>; | |
| } | |
| server { | |
| listen 80; |
| node { | |
| def currentVersion = getCurrentVersion() | |
| def newVersion = getNextVersion(currentVersion) | |
| def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim() | |
| def originalDst = getDst(getDtab()) | |
| stage("clone") { | |
| git url: gitRepo + '.git', branch: gitBranch | |
| } |
| node { | |
| def currentVersion = getCurrentVersion() | |
| def newVersion = getNextVersion(currentVersion) | |
| def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim() | |
| def originalDst = getDst(getDtab()) | |
| stage("clone") { | |
| git url: gitRepo + '.git', branch: gitBranch | |
| } |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
| server { | |
| listen 80; | |
| server_name app.example.com; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } | |
| server { | |
| listen 443; | |
| server_name app.example.com; |
| # Public Domain, i.e. feel free to copy/paste | |
| # Considered a hack in Python 2 | |
| import inspect | |
| def caller_name(skip=2): | |
| """Get a name of a caller in the format module.class.method | |
| `skip` specifies how many levels of stack to skip while getting caller | |
| name. skip=1 means "who calls me", skip=2 "who calls my caller" etc. |