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
int MAX_ARGS = 10; | |
var arg_list = new string[MAX_ARGS](); | |
for (int i=0; i < MAX_ARGS; i++) | |
{ | |
arg_list[i] = "arg_" + i.ToString | |
define_method(@" | |
static Func<A, R> Memoize<A, R>(this Func<A, R> function) | |
{ | |
var cache = new Dictionary<A, R>(); |
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
require 'yaml' | |
require 'syck' | |
require 'fileutils' | |
if ARGV.empty? | |
$stderr.puts "! Must pass one or more filenames to convert from Syck output to Psych output." | |
exit 1 | |
end | |
bad_files = ARGV.select{ |f| ! File.exists?(f) } |