Skip to content

Instantly share code, notes, and snippets.

Shoes.app :margin => 20, :width => 360 do
flow :width => 1.0, :height => 30 do
background gray(0.5)
stack :width => 0.5 do
para strong "Magic Tool", :size => 14
end
stack :width => 0.25
stack :width => 0.25 do
flow do
button("+") {}
example = [ ['a', 'b', 'c', 'd', 'e'],
['f', 'g', 'h', 'i', 'j'],
['k', 'l', 'm', 'n', 'o'],
['p', 'q', 'r', 's', 't'],
['u', 'v', 'w', 'x', 'y']]
$letterhash = Hash.new
('a'..'z').each do |letter|
row = 0
x = [1,2]
y = x
y[0] = 2
print x; print y #=> [2,2][2,2]
#TO DO: import puzzle file, puzzle generator, solutions view omitting unused characters, solutions view highlighting selected words, verbose options, test multiple solutions
samplepuzzle = [ ['b', 'b', 'c', 'd', 'e'],
['f', 'e', 'g', 'g', 'j'],
['k', 'a', 'l', 'o', 'o'],
['s', 'r', 's', 'l', 's'],
['u', 's', 'w', 'd', 'y']]
samplebank = [%w{b e a r s}, %w{e g g}, %w{g o l d}, %w{b e l l}]
#TO DO: import puzzle file, puzzle generator, solutions view omitting unused characters, solutions view highlighting selected words, verbose options, test multiple solutions
samplepuzzle = [ ['b', 'b', 'c', 'd', 'e'],
['f', 'e', 'g', 'g', 'j'],
['k', 'a', 'l', 'o', 'o'],
['s', 'r', 's', 'l', 's'],
['u', 's', 'w', 'd', 'y']]
samplebank = [%w{b e a r s}, %w{e g g}, %w{g o l d}, %w{b e l l}]
# good UI
# sorting choices
# detect downloads, give shows update prompt
# use classes?
# {Show => [[Seasons, Episodes], Complete?, Notes]}
$series = Hash.new()
def addseries(title)
/Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `read': not opened for reading (IOError)
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse'
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse_stream'
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:125:in `parse'
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:112:in `load'
from shows.rb:15:in `<main>'
@AnimaWish
AnimaWish / shows.rb
Last active December 15, 2015 15:39
# good UI
# more sorting options
# detect downloads, give shows update prompt - make a daemon? how do i do that
# saving/loading - use yaml
# groups/genres?
# priority?
# import from rtf
# {Show => [[Seasons, Episodes], Complete?, Notes]}
# good UI
# more sorting options
# detect downloads, give shows update prompt - make a daemon? how do i do that
# groups/genres?
# priority?
# import from rtf
# {Show => [[Seasons, Episodes], Complete?, Genre?, Notes]}
require "yaml"