Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
Following proposal by @littledan
THIS NO LONGER MATCHES THE PROPOSED API AND SHOULD NOT BE USED
Just proof-of-concept. Do not use in production.
| sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons | |
| sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist |
| 'use strict'; | |
| var React = require('react'), | |
| classSet = require('react/lib/cx'), | |
| _ = require('underscore'); | |
| var ClassNameMixin = { | |
| propTypes: { | |
| className: React.PropTypes.string, | |
| context: React.PropTypes.string |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"] | |
| [spyscope "0.1.3"] | |
| [criterium "0.4.1"]] | |
| :injections [(require '(clojure.tools.namespace repl find)) | |
| ; try/catch to workaround an issue where `lein repl` outside a project dir | |
| ; will not load reader literal definitions correctly: | |
| (try (require 'spyscope.core) | |
| (catch RuntimeException e))] | |
| :plugins [[lein-pprint "1.1.1"] | |
| [lein-beanstalk "0.2.6"] |
| // installed Clojure packages: | |
| // | |
| // * BracketHighlighter | |
| // * lispindent | |
| // * SublimeREPL | |
| // * sublime-paredit | |
| { | |
| "word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?", | |
| "paredit_enabled": true, |
| define([], function () { | |
| return function HypotheticalHelperMethod() { | |
| doSomeOtherStuff(); | |
| } | |
| }); | |
| define(["helperMethod"], function (helperMethod) { |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.