Skip to content

Instantly share code, notes, and snippets.

@trentont101
trentont101 / RIFFBOOK.rb
Last active August 29, 2015 13:56
RIFFBOOK - A program for guitar players. Store tab links, write songs, create a chord database, save links, and create notes!
def space
puts " "
puts " "
end
# MAIN MENU
def main_menu
space
@trentont101
trentont101 / gist:8892412
Created February 9, 2014 00:22
error running gtk
jackal@ruby:~/Desktop/ruby-gnome2-all-2.0.2/gtk3/sample/gtk-demo$ ruby rotated_text.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- common (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from rotated_text.rb:14:in `<main>'
@trentont101
trentont101 / gist:8493729
Created January 18, 2014 17:45
A calculator (with feelings)
# METHOD 1 ADDITION (add)
def add
puts ' '
puts ' '
puts "Please enter your first number"
num1 = gets.strip.to_i
puts ' '
puts "Please enter your secound number"
num2 = gets.strip.to_i
@trentont101
trentont101 / GLOOMMUD
Last active January 3, 2016 17:08
A very simple textual adventure
# This is a very simple textual adventure taking place in gloomville UNFINISHED -- feel free to finish it and send me a copy :)
def room1
puts "You are walking down a pale grey road with rather boring shrubs and trees besides you to the east and west. A sign to the west catches your attentions. A gate blocks the path to your south as the road continues on to the north"
puts "Exits : north"
puts ' '
action = gets.chomp
if action == 'read sign'
puts ' '
puts ' The sign reads..'