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
#!/bin/sh | |
# | |
# Copyright (c) 2007 Andy Parkins | |
# | |
# An example hook script to mail out commit update information. This hook | |
# sends emails listing new revisions to the repository introduced by the | |
# change being reported. The rule is that (for branch updates) each commit | |
# will appear on one email and one email only. | |
# | |
# This hook is stored in the contrib/hooks directory. Your distribution |
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 -w | |
class O | |
def yield | |
puts "Yielded." | |
end | |
def do | |
puts "Doing." | |
end | |
def def |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<!-- Copyright (c) 2008 Dustin Sallings <dustin+html@spy.net> --> | |
<html lang="en"> | |
<head> | |
<title>Relativity.</title> | |
<style type="text/css"> | |
img { border: 0; margin-right: 2px; } | |
textarea { overflow: scroll; } |
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 python | |
import random | |
if __name__ == '__main__': | |
colors=('red', 'green', 'yellow', 'blue') | |
limbs=('left foot', 'right foot', 'left hand', 'right hand') | |
print random.choice(limbs), random.choice(colors) |
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
# moved to http://gist.github.com/41462 | |
def whack(objects) | |
Hash[ *objects.map{|o| [o.send('table_name'), o.send('delete_all')]}.flatten] | |
end |
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
def whack(objects) | |
Hash[*objects.map{|o| [o.send('table_name'), o.send('delete_all')]}.flatten] | |
end | |
# or (depending on what "send" means there) | |
def whack(objects) | |
Hash[*objects.map{|o| [o.table_name, o.delete_all]}.flatten] | |
end |
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
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN | |
http://www.apple.com/DTDs/PropertyList-1.0.dtd > | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>net.spy.boxee</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/open</string> | |
<string>-W</string> |
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
Memcached 1.3 Beta 2 Release Notes | |
================================== | |
Date: 2009-03-11 Wed | |
Table of Contents | |
================= | |
1 New Features | |
1.1 Binary Protocol |
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
commit e703ce4cb0b0ee8034ba9c2331877a97ffb6d11a | |
Author: Dustin Sallings <dustin@spy.net> | |
Date: Mon Jan 19 23:45:38 2009 +0000 | |
Build fixes for ubuntu 8.10/64. | |
gcc seems to have been wise to all of the syscalls being cast to void | |
to avoid doing real result checking in unlikely errors. | |
commit 5a44468708aa09fcec469557258a5d69a88811ca |
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
.__ ___. .__ __ .__ .___ | |
| |__ _____ ______ ______ ___.__. \_ |__ |__|_______ _/ |_ | |__ __| _/_____ ___.__. | |
| | \ \__ \ \____ \ \____ \< | | | __ \ | |\_ __ \\ __\| | \ / __ | \__ \ < | | | |
| Y \ / __ \_| |_> >| |_> >\___ | | \_\ \| | | | \/ | | | Y \/ /_/ | / __ \_\___ | | |
|___| /(____ /| __/ | __/ / ____| |___ /|__| |__| |__| |___| /\____ | (____ // ____| | |
\/ \/ |__| |__| \/ \/ \/ \/ \/ \/ | |
_____ ___ ___ ___ ___ ___ | |
/ /::\ / /\ / /\ /__/\ /__/\ /__/| ___ | |
/ /:/\:\ / /:/_ / /:/_ \ \:\ \ \:\ | |:| / /\ | |
/ /:/ \:\ / /:/ /\ / /:/ /\ \ \:\ \ \:\ | |:| / /:/ |