This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
window.__SCRIPT ? window.__SCRIPT.index++ : window.__SCRIPT = { index : 0 }; | |
var scriptElement = null; | |
var scriptParams = (function() { | |
var scripts = document.getElementsByTagName("script"); | |
var __SCRIPTS = []; | |
for (var i = 0; (i < scripts.length); i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "AsyncUdpSocket.h" // http://code.google.com/p/cocoaasyncsocket/ | |
... | |
AsyncUdpSocket *s = [[AsyncUdpSocket alloc] init]; | |
[s sendData:@"data" toHost:@"example.com" port:27072 withTimeout:0.0 tag:1]; | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from socket import * | |
import time | |
import subprocess | |
SERVER = "localhost" | |
PORT = 27072 | |
# start udps UDP server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "defaults write com.apple.terminal 'Default Window Settings' 'Z Night'" | |
do shell script "defaults write com.apple.terminal 'Startup Window Settings' 'Z Night'" | |
do shell script "defaults write com.googlecode.iterm2 'Default Bookmark Guid' 'E1B7B3E2-2D10-4818-9F72-4AD1185D9CA1'" | |
do shell script "export SHELL_VIBE='night'; open -a iTerm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "defaults write com.apple.terminal 'Default Window Settings' 'Z Day'" | |
do shell script "defaults write com.apple.terminal 'Startup Window Settings' 'Z Day'" | |
do shell script "defaults write com.googlecode.iterm2 'Default Bookmark Guid' '7507F3CA-F7A4-4D6A-8061-9BF7215861C9'" | |
do shell script "export SHELL_VIBE='day'; open -a iTerm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# README: Start server with em-stream-tail.rb tail-filename | |
# Connect to server with curl http://localhost:8083 | |
# Observe log events on curl. | |
# | |
require 'rubygems' | |
require 'eventmachine' | |
if ARGV.empty? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /reservation/new | |
email=foo@example.com&quantity=1&start_date=2011-11-01&country_code=XA&insurance=false&agreement=true&shipping_name=rudolf%20rampe&shipping_street=1820%20Bells&shipping_city=Vienna&shipping_country=AT | |
~~~ | |
HTTP/1.1 400 | |
{ | |
"success" : false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /reservation/new | |
email=foo@example.com&quantity=1&start_date=2011-11-01&end_date=2011-11-15&country_code=AT&insurance=false&agreement=true&shipping_name=rudolf%20rampe&shipping_street=1820%20Bells&shipping_city=Vienna&shipping_country=AT&shipping_zip=91090 | |
~~~ | |
HTTP/1.1 200 | |
{ | |
"success" : true, |