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
# Logic for forking connections | |
# The forked process does not have access to static vars as far as I can discern, so I've done some stuff to check if the op threw an exception. | |
def fork_with_new_connection | |
# Store the ActiveRecord connection information | |
config = ActiveRecord::Base.remove_connection | |
pid = fork do | |
# tracking if the op failed for the Process exit | |
success = true |
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
Earthquake.init do | |
command %r|^:favstar\s*(.+)*|, :as => :favstar do |m| | |
browse 'http://favstar.fm/me' | |
end | |
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
!!! 5 | |
//if lt IE 7 | |
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> | |
//if IE 7 | |
<html class="no-js lt-ie9 lt-ie8"> | |
//if IE 8 | |
<html class="no-js lt-ie9"> | |
//[if gt IE 8]><! | |
html(class='no-js') | |
//<![endif] |
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 | |
# Licence: MIT | |
# Created by tomykaira, 2011-10-25 | |
if [ $# -ne 1 ]; then | |
echo "Give me your new project name (only)" | |
exit 1 | |
fi |
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
// tested with DMD64 D Compiler v2.058 | |
import std.process; | |
void main() { | |
system( "ls" ); | |
} |