- Only first pass complete: raw translation from Java example to Scala.
- Second pass [incomplete]: abstracting to make server and client specific code composable.
- Create declarative and composable Pipeline definition
/twistd.pid | |
/_trial_temp/ |
Dear soon-to-be-former user, | |
We've got some fantastic news! Well, it's great news for us anyway. You, on | |
the other hand, are fucked. | |
We've just been acquired by: | |
require 'riak/cluster' | |
cluster = Riak::Cluster.new(:count => 4, :source => "/usr/local/Cellar/riak/1.0.3/libexec/bin", :root => "~/mycluster") | |
cluster.create | |
cluster.start | |
cluster.join |
(defun chomp (str) | |
"Chomp leading and tailing whitespace from STR." | |
(while (string-match "\\`\n+\\|^\\s-+\\|\\s-+$\\|\n+\\'" str) | |
(setq str (replace-match "" t t str))) str) | |
(defun get-keychain-password (account-name) | |
"Gets `account` keychain password from OS X Keychain" | |
(chomp | |
(shell-command-to-string | |
(concatenate |
%% @doc Uses SAX to convert an XML document into a simple nested-tuple | |
%% structure. Ignores namespaces. | |
-module(xmlsimple). | |
-export([file/1, | |
string/1, | |
emit/1, | |
emit_file/2]). | |
-include_lib("xmerl/include/xmerl.hrl"). |
(defun web-reload-iphonesimulator () | |
"Reload a page on iPhone Simulator. Run process associated to the *Messages* buffer" | |
(interactive) | |
(start-process-shell-command | |
"iphonesimulator-process" | |
"*Messages*" | |
"osascript -e 'tell application \"System Events\"' -e 'tell process \"iPhone Simulator\"' -e 'click button \"Reload\" of window 1' -e 'end tell' -e 'end tell'")) |
#!/bin/bash | |
# Open iPhone Simulator on default location for XCode 4.3 if found | |
[[ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] && | |
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app | |
# Open iPhone Simulator on default location for XCode 4.2 if found | |
[[ -d /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] && | |
open /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app |
# Usage: redis-cli publish message hello | |
require 'sinatra' | |
require 'redis' | |
conns = [] | |
get '/' do | |
erb :index | |
end |
var get = Ember.get; | |
/** | |
* @extends Ember.Mixin | |
* | |
* Implements common filter / sort / pagination behavior for array controllers | |
* */ | |
Ember.FilterSortSliceMixin = Ember.Mixin.create({ | |
filterBy: '', |