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
cardigan > list | |
------------------------------------------------------------------------ | |
| index | name | priority | | |
------------------------------------------------------------------------ | |
| 1 | allow columns to be truncated in list | | | |
| 2 | automatically commit card operations for git | | | |
| 3 | automatically commit card operations for hg | | | |
| 4 | automatically commit card operations for svn | | | |
| 5 | card history report | | | |
| 6 | card workflow | | |
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
irb --> RUBY_VERSION | |
==> "1.9.1" | |
irb --> module M | |
module A | |
def execute(&block) | |
instance_eval(&block) | |
end | |
end | |
end |
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
Here's just a taste of life with a BigPond Elite™ USB Mobile Card (on mac os x 10.6.3 and the latest driver 2.16.9): | |
Wed May 5 21:38:02 EST 2010 - plugged in | |
Wed May 5 21:38:42 EST 2010 - connected (with 100% next g signal) | |
Wed May 5 21:44:57 EST 2010 - disconnected | |
Wed May 5 21:45:18 EST 2010 - connected | |
Wed May 5 21:47:36 EST 2010 - disconnected | |
Wed May 5 21:47:57 EST 2010 - connected | |
Wed May 5 21:50:53 EST 2010 - disconnected and the 'bigpond wireless' application crashed | |
Wed May 5 21:51:20 EST 2010 - connected |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\0bash] | |
@="Prompt - bash" | |
[HKEY_CLASSES_ROOT\Directory\shell\0bash\command] | |
@="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" | |
[HKEY_CLASSES_ROOT\Directory\shell\0cmd] | |
@="Prompt - cmd" |
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
module Things | |
class Thing | |
instance_methods.each { |m| undef_method m unless m =~ /^__/ or ['instance_eval'].include?(m) } | |
include Things | |
def initialize | |
@hash = {} | |
end | |
def __hash |
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
> brew install ghc | |
Formula already installed: /usr/local/Cellar/ghc/6.12.3 | |
> wget http://hackage.haskell.org/packages/archive/cabal-install/0.8.2/cabal-install-0.8.2.tar.gz | |
> tar zxvf cabal-install-0.8.2.tar.gz | |
> cd cabal-install-0.8.2 | |
> sh bootstrap.sh | |
> export PATH=~/.cabal/bin:$PATH | |
> cabal install atomo |
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 'rubygems' | |
require 'sequel' | |
require 'cgi' | |
require 'splat' | |
home = File.expand_path '~' | |
profiles = "#{home}/Library/Application Support/Songbird2/Profiles" | |
profile = "e6rg7czm.default" | |
db_path = "#{profiles}/#{profile}/db/[email protected]" |
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
mephistopheles:Jukebox markryall$ songbirdsh | |
songbirdsh > search ned atomic god | |
22681: ned's atomic dustbin god fodder 1 kill your television | |
22682: ned's atomic dustbin god fodder 2 less than useful | |
22683: ned's atomic dustbin god fodder 3 selfish | |
22684: ned's atomic dustbin god fodder 4 grey cell green | |
22685: ned's atomic dustbin god fodder 5 cut up | |
22686: ned's atomic dustbin god fodder 6 throwing things | |
22687: ned's atomic dustbin god fodder 7 capital letters |
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 --git a/Gemfile b/Gemfile | |
index f322577..9bb0f33 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -4,4 +4,4 @@ gemspec | |
platforms(:ruby) do | |
gem 'therubyracer', '>= 0.8.0.pre2' | |
-end | |
+end |
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 ruby | |
require 'erb' | |
FromTo = Struct.new :from, :to | |
template = ERB.new <<EOF, nil, '%>' | |
<html> | |
<head></head> | |
<body> |
OlderNewer