Skip to content

Instantly share code, notes, and snippets.

View rsese's full-sized avatar
💭
🐴 🍕 🎃 👻

Robert Sese rsese

💭
🐴 🍕 🎃 👻
  • GitHub
  • Chicago, IL
View GitHub Profile
@rsese
rsese / hello.c
Created September 25, 2013 02:55
Hello Worlds!
#include<stdio.h>
int main(int argc, char** argv) {
printf("Hello World!\n");
return 0;
}
@rsese
rsese / dog.md
Created March 16, 2016 21:58
the a hi there dog

woof

@rsese
rsese / make-test-file.rb
Last active May 6, 2017 20:00
Create a test file of size NUM_LINES * LINE_LENGTH 📰
fout = File.open("test.dat", "w+")
NUM_LINES = 50000
LINE_LENGTH = 130
line = ("a" * LINE_LENGTH) + "\n"
(1..NUM_LINES).each do
fout.write(line)
end
@rsese
rsese / roo-example.rb
Created November 3, 2012 23:01
Reading Data From a Spreadsheet with Roo
require 'roo'
# Spreadsheet courtesy of the A List Apart 2010 Web Design Survey:
# http://www.alistapart.com/articles/survey2010
workbook = Excel.new('a-list-apart-web-design-survey-sample.xls')
# Set the worksheet you want to work with as the default worksheet. You could
# also iterate over all the worksheets in the workbook.
workbook.default_sheet = workbook.sheets[0]