I've started thinking of server configurations in Ansible terms (i.e. "I want X module installed, Y directory present, etc"), but sometimes nothing beats a simple bash command to git pull && sudo service restart.
716 karma · joined September 11, 2009
I've started thinking of server configurations in Ansible terms (i.e. "I want X module installed, Y directory present, etc"), but sometimes nothing beats a simple bash command to git pull && sudo service restart.
Additionally, as Alex said, though most uses of the links don't require a 100% match rate ("any growth is good"), we do have an option for links which require a 100% match.
loadAndPrintFile: (contents) {
if (!contents) {
fs.readFile() -> (error!, contents)
}
console.log(contents);
}
i.e., expected behavior would be as if readFile was not an async function.I'm asking because I built something similar (though it only worked with promises, not general async functions), and I'm curious to compare approaches :-) - mine is a sweet.js macro: http://pastie.org/9410315 (uses https://github.com/petkaantonov/bluebird and https://github.com/BranchMetrics/promise-accum). The basic syntax would be:
task {
item1 <- LoadItem(1);
item2 <- LoadItem(item1.foreign_key);
ret <- DoSomethingWithItems(item1, item2);
}2. On the async functions – what happens if you put an async function inside a conditional? This is effectively solved by ES6's yield + co or an equivalent.
3. A nitpick, but, is there a way to create static functions on classes? E.g. Car.x instead of Car.prototype.x?
We're a small, very high-growth company, with an exciting place in the market and an amazing team. You'd play a vital role in the success and growth of our company, would have ownership over a large part of the business, and would be part of a small, fast-growing team in a huge market. We're at a point now where we have tons of customer demand and not enough features to satisfy them!
Our stack:
- Servers in Node.js, backed by Postgres
- Deployment on AWS with Docker and Ansible
- iOS SDK in Objective-C and Android SDK in Java
Our team: 2 coders, 1 sales/operations, 1 sales/designWhat we're looking for:
- Great frontend or backend developers – particularly, JavaScript ninjas!
- self-directed, good communicator
- full-time employee willing to work out of our Palo Alto office
What you get: - competitive salary
- serious equity
- health
- lunch
- open vacation
- the opportunity to be in the ground floor of a rocket ship – to have a meaningful impact on the business, to work closely with the whole team, and to help us grow to an amazing place, together
If you're interested, I'd love to talk - dmitri@branchmetrics.io. Each training pattern should have an input and an output, both of which can be either an array of numbers from 0 to 1 or a hash of numbers from 0 to 1.Our stack:
- Servers in Node.js, backed by Postgres
- Deployment on AWS with Ansible
- iOS SDK in Objective-C and Android SDK in Java
Our team: 2 coders, 1 sales/operations, 1 sales/designWhat we're looking for:
- HTML/CSS knowledge with an eye for design
- advanced JavaScript skill
- self-directed, good communicator
- full-time employee willing to work out of our Palo Alto office
What you get: - competitive salary + equity
- the opportunity to come in as employee #1 and take ownership of a critical part of our infrastructure
If you're interested, I'd love to talk - dmitri@branchmetrics.io.We are an early-stage VC-backed startup providing an iPhone and Android SDK for mobile developers to offer photo prints through their apps; we handle printing, logistics, customer service, and payments for those apps; our goal is for it to be as frictionless as possible for those developers.
Our stack:
- servers in node.js
- deployment on AWS with Ansible
- RethinkDB database
- iOS SDK in Objective-C and Android SDK in Java
Our team: 2 coders, 1 printer operations, 1 sales/designWhat we're looking for:
- experience writing iPhone or Android apps - we're looking for someone take full ownership of the SDK of either platform
- self-directed, good communicator
- full-time employee (summer interns are great too!) willing to work out of our Palo Alto office
What you get: - competitive salary + equity
- the opportunity to come in as employee #1 and take ownership of a critical part of our infrastructure
Email me – dmitri@kindredprints.com – I'd love to tell you more :-) var b = require('bluebird'), request = b.promisify(require('request'));
request(...).then(...)
These libraries also have utilities for controlling callback flow -- e.g calling several promises in parallel, which is done in the article with jQuery's $.when, waiting until a certain number finish, etc[Edit: IANAL]