Skip to content

Instantly share code, notes, and snippets.

@csoreff
csoreff / keybase.md
Created March 15, 2020 05:16
keybase.md

Keybase proof

I hereby claim:

  • I am csoreff on github.
  • I am csoreff (https://keybase.io/csoreff) on keybase.
  • I have a public key ASBk0koXJskMDyVUMf6qRJPf15t0EYRHUOdgBgl3Wr6vtAo

To claim this, I am signing this object:

@csoreff
csoreff / dbscript.rb
Created May 5, 2015 16:24
Movie Store Database Program
#!/usr/bin/ruby
require 'sqlite3'
begin
db = SQLite3::Database.open "database.db"
db.execute "CREATE TABLE IF NOT EXISTS dvds(sku INTEGER PRIMARY KEY,
movieName VARCHAR(45), releaseYear VARCHAR(4), numInInventory INT, minutes INT, price DECIMAL)"
db.execute "INSERT INTO dvds VALUES(12345,'Braveheart', '1995', 6, 182, 9.99)"
@csoreff
csoreff / deaf_grandma
Last active August 29, 2015 14:15
Deaf Grandma
#Corey LeBlanc
def grandma()
puts "What would you like to say to Grandma?"
year = Random.new #Initialize new random object
byecount = 0 #Keeps track how how many BYEs in a row
while byecount != 3 #Keep chatting until you yell BYE three times
string = gets.chomp