Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
%html
%head
%meta{:"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
%title ONLINE KINGDOM
= stylesheet_link_tag 'screen'
= javascript_include_tag 'jquery'
= javascript_include_tag 'application', 'cufon-yui', 'Arial_Rounded_MT_Bold_400.font'
= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery?
= javascript_include_tiny_mce_if_used
@ramblex
ramblex / comments.c
Created November 1, 2010 11:05
Some useful comments
if (tbsTable[searchPos] >= key) // If the value in the search position
{ // is greater than the number for
upperbound = searchPos - 1; // which we are searching, change
} // upperbound to the search position
else // minus one.
{ // Else, change lowerbound to search.
lowerbound = searchPos + 1;// position plus one.
}
@ramblex
ramblex / synccvs.sh
Created October 30, 2010 13:26
Export commits from git master to the current CVS checkout
#!/bin/bash
# Export commits from git master to the current CVS checkout. Expects a git tag
# called synccvs to point to the place in the git repo where CVS is up-to-date.
# Any commits between synccvs and master in git will be exported to CVS.
#
# Usage:
# ./synccvs.sh [-f]
#
# By default the script will only print out what would be committed to CVS. To
is_known_and_unique(Name) :-
student(Name, X, _),
student(Name, Y, _),
X \== Y.