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
/* | |
* format_c is a data structure that holds column vectors | |
*/ | |
typedef struct { | |
format_c *values; | |
int row_count; | |
} format_c; | |
/* | |
* format_batch is a data structure that holds an array of column vectors (aka, row batch) | |
*/ |
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
# | |
class MyClass | |
def my_method | |
"original my_method" | |
end | |
def another_method | |
my_method | |
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 -n | |
require 'highline/import' | |
loop do | |
cmd = ask("Enter command: ", %w{save sample load reset quit}) do |q| | |
q.readline = true | |
end | |
say("Executing \"#{cmd}\"...") | |
break if cmd == "quit" | |
end |