Skip to content

Instantly share code, notes, and snippets.

💭
🥑 :atom: 🥑

Robert Sese rsese

💭
🥑 :atom: 🥑
Block or report user

Report or block rsese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rsese
rsese / make-test-file.rb
Last active May 6, 2017
Create a test file of size NUM_LINES * LINE_LENGTH 📰
View make-test-file.rb
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 / dog.md
Created Mar 16, 2016
the a hi there dog
@rsese
rsese / hello.c
Created Sep 25, 2013
Hello Worlds!
View hello.c
#include<stdio.h>
int main(int argc, char** argv) {
printf("Hello World!\n");
return 0;
}
@rsese
rsese / roo-example.rb
Created Nov 3, 2012
Reading Data From a Spreadsheet with Roo
View roo-example.rb
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]
You can’t perform that action at this time.