Skip to content
xset +fp /usr/share/fonts/local
xset fp rehash
public_ip(){
echo `wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'`
}
NETWORKICON=`echo -e '\uE0AF'`
BATTERYICON=`echo -e '\uE037'`
CLOCKICON=`echo -e '\uE015'`
PACMANICON=`echo -e '\uE00F'`
# Maintainer: Jochen Schalanda <jochen+aur@schalanda.name>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: helios <aur@wiresphere.de>
pkgname=vagrant
pkgver=1.3.3
pkgrel=1
pkgdesc="Tool for building and distributing virtualized development environments"
arch=('i686' 'x86_64')
url="http://vagrantup.com/"
license=('MIT')
tail -f out | perl -pe 's/^[0-9-]* //g;s/<.*> /\e[0;34m$&\e[0m/g;'

Embracing Chaos with JavaScript

George Ornbo @shapeshed

Hackference, Birmingham 30th August 2013

A brief history

var map = function () {
if (this.event === 'user message') {
var datetime = new Date(this.timestamp);
var created_at_minute = new Date(datetime.getFullYear(),
datetime.getMonth(),
datetime.getDate(),
datetime.getHours(),
datetime.getMinutes());
emit(created_at_minute, {count: 1});
}
git rev-parse HEAD
8ae08b436531503aef7ddd82cb21641ecc55d78f
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...

REST Workshop

What is REST?

  • Roy Fielding
  • HTTP
  • Distributed data
  • Web APIs (GitHub, Twitter etc)

tl;dr

#!/bin/sh
cd /usr/local/share
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-i686.tar.bz2
tar -xjf /usr/local/share/phantomjs-1.9.0-linux-i686.tar.bz2
sudo ln -sf /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/local/bin/phantomjs
git clone git://github.com/n1k0/casperjs.git /usr/local/src/casperjs
cd /usr/local/src/casperjs
git checkout tags/1.0.2
ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs
GET /users -> index
GET /users/new -> new
POST /users -> create
GET /users/:user -> show
PUT /users/:user -> update
DELETE /users/:user -> destroy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.bitlbee</string>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
Something went wrong with that request. Please try again.