This file contains hidden or 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
;; I'm not saying this is good Clojure, but it was off the top of my head | |
;; It's a title bot for jschat.org | |
(import '(java.io BufferedReader InputStreamReader PrintWriter)) | |
(import '(java.net Socket)) | |
(import '(java.net HttpURLConnection URL)) | |
(use '[clojure.contrib.json.read :only (read-json)]) | |
(use '[clojure.contrib.json.write :only (json-str)]) | |
;; Data structures |
This file contains hidden or 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
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
This file contains hidden or 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
# encoding: utf-8 | |
module I18n | |
module Backend | |
# A simple backend that reads translations from YAML files and stores them in | |
# an in-memory hash. Relies on the Base backend. | |
# | |
# The implementation is provided by a Implementation module allowing to easily | |
# extend Simple backend's behavior by including modules. E.g.: | |
# |
This file contains hidden or 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
*.pbxproj -crlf -diff -merge |
This file contains hidden or 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
[Session started at 2010-04-21 19:08:31 +0200.] | |
GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar 5 04:43:10 UTC 2010) | |
Copyright 2004 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys005 | |
Loading program into debugger… | |
Program loaded. |
This file contains hidden or 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 | |
export PATH=/opt/ruby/bin:~/.gem/ruby/1.8/bin:$PATH | |
export RAILS_ENV=test | |
# Bundle commands for Rails3 | |
# bundle install && | |
# bundle lock && | |
cp config/database.yml.example config/database.yml && | |
# Rails2 shenanigans |
This file contains hidden or 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
tell application "Mailplane" | |
set doNotDisturb to true | |
end tell | |
tell application "Skype" | |
send command "SET USERSTATUS DND" script name "PomodoroStart" | |
send command "SET SILENT_MODE ON" script name "PomodoroStart" | |
send command "SET PROFILE MOOD_TEXT In the middle of a Pomodoro, please DND" script name "PomodoroStart" | |
end tell |
This file contains hidden or 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 | |
# | |
# FlickrTouchr - a simple python script to grab all your photos from flickr, | |
# dump into a directory - organised into folders by set - | |
# along with any favourites you have saved. | |
# | |
# You can then sync the photos to an iPod touch. | |
# | |
# Version: 1.1 |
This file contains hidden or 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
require 'open-uri' | |
# url dsl -- the ultimate url dsl! | |
# | |
# You just can't beat this: | |
# | |
# $ irb -r url_dsl | |
# >> include URLDSL | |
# => Object | |
# >> http://github.com/defunkt.json |
This file contains hidden or 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
diff -r e07f7793ad1b server/python/raindrop/proto/imap.py | |
--- a/server/python/raindrop/proto/imap.py Fri Oct 23 15:10:01 2009 +1100 | |
+++ b/server/python/raindrop/proto/imap.py Fri Oct 23 17:48:16 2009 +0200 | |
@@ -102,7 +102,7 @@ | |
# Probably: http://twistedmatrix.com/trac/ticket/1443 | |
# "[imap4] mismatched quoting spuriously raised" - raised early 2006 :( | |
try: | |
- imap4.IMAP4Client._defaultHandler(self, tag, rest) | |
+ imap4.IMAP4Client._defaultHandler(self, str(tag), str(rest)) | |
except imap4.MismatchedQuoting, exc: |