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
| /* | |
| Each table is put into it's own sublevel. | |
| It's assumed that every table's primary key is ID. | |
| and a foreign key is always {table}ID | |
| If there isn't A table with that name, assume it's a self link. | |
| (like ManagerID points back to the Employee table) | |
| */ | |
| //Automagically join two tables that have conventionally named fields. | |
| // magic (nameOfLeftTable, nameOfRightTable) |
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
| //top level is types, key:values are the structure that object must have, | |
| //and the types of the values. | |
| //Link means the hash of an object of the named type. | |
| //Plus and Star define sets. And are just like regular expression + and * | |
| //you could also have ? (Maybe) but it's not necessary to describe git. | |
| { | |
| COMMIT: { | |
| //a cypherlink to a commit object |
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
| There are so many gramatically valid but awkward english sentences. | |
| There are many awkward but gramatically valid english sentences. | |
| There exist many english sentences which are gramatically valid, but awkward to read. | |
| There are many awkward english sentences which are, never the less, gramatically valid. | |
| The english language contains many awkward-to-read sentences that are within the set of gramatically valid sentences. | |
| The set of gramatically valid english sentences contains many that are quite awkward. | |
| Many gramatically valid english sentences are awkward. | |
| The grammatic vallidity of a given engilsh sentence does not preclude it's awkwardness. | |
| There are many awkward, gramatically valid english sentences. | |
| Many awkward sentences are gramatically valid english. |
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
| puts "hello world?" | |
| #raise "CRAZY EXCEPTION!" |
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
| foo ||= true | |
| puts foo | |
| foo = nil | |
| foo ||= true | |
| puts foo | |
| foo = false | |
| foo ||= true | |
| puts foo |
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
| var sys = require('sys'), | |
| exec = require('child_process').exec; | |
| // fs = require('fs'); | |
| // ecsv = require('ecsv') | |
| function Queue () { | |
| var waiting = []; | |
| this.max = -1; | |
| this.current = 0; | |
| //run checks if we're under the max processors, and runs if there is room. |
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
| exports.hello = function(){return 'HI'); |
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
| if (module == require.main) { | |
| return require('async_testing').run(process.ARGV); | |
| } | |
| require('async_testing/lib/child') | |
| exports ['test should fail'] = function (test){ | |
| test.ok(false) | |
| } |
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
| //async_testing.runfile.asynct | |
| exports ['does not call onSuiteDone twice'] = function (test){ | |
| var file = 'async_testing/test/test-stderr' | |
| require('async_testing').runFile(file,{onSuiteDone:suiteDone}) | |
| function suiteDone (status,report){ | |
| console.log("suiteDone - " + status + "'" + file + "'") |
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
| #! ruby | |
| require "eregex" | |
| @patterns = Hash.new | |
| @keys = [] | |
| def path(dir, group=nil) | |
| if (dir.is_a? String) then | |
| dir = Regexp.escape(dir) |
OlderNewer