Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
var arDrone = require('ar-drone'); | |
var client = arDrone.createClient(); | |
client.takeoff(); | |
client | |
.after(5000, function() { | |
this.clockwise(0.5); | |
}) | |
.after(3000, function() { |
var domain = require('domain'); | |
var d = domain.create() | |
var fs = require('fs') | |
server = require('http').createServer( | |
function(req, res) { | |
var d2 = domain.create(); | |
d2.add(req) | |
d2.add(res) |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://npmjs.org/install.sh | sh |
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |
Work in progress, I'll write this up properly when I'm done.
Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.
Prerequisites:
function ci() { | |
echo -e "$(testlingify &> /dev/null && testlingify badge)\n\n\ | |
$(travisify &> /dev/null && travisify badge)" | |
} | |
# with nodei.co badge | |
function ci() { | |
name=$(node -pe 'require("./package").name') | |
echo -e "[![NPM](https://nodei.co/npm/$name.png)](https://nodei.co/npm/$name)\n\n\ |
Code examples from this stack overflow answer.
package main | |
import ( | |
"net/http" | |
"fmt" | |
"io" | |
"strconv" | |
"launchpad.net/goamz/aws" | |
"launchpad.net/goamz/s3" | |
) |
// Done inside a repl so I can call land() when the drone is mis-behaving | |
// The client library will probably handle the forSec() queue stuff in the future | |
var client = require('.').createClient(); | |
client.startRepl(function(err) { | |
if (err) throw err; | |
forSec(5, 'takeoff'); | |
forSec(3, 'stop'); | |
forSec(5, 'frontBack', -0.1); |