Skip to content

Instantly share code, notes, and snippets.

View Joe-Gigs's full-sized avatar

Joseph Giglio Joe-Gigs

  • Philadelphia, PA
View GitHub Profile
@Joe-Gigs
Joe-Gigs / readme.txt
Created August 21, 2018 16:17
Carnival Shooter! (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Joe-Gigs
Joe-Gigs / readme.txt
Created August 17, 2018 19:20
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
cards = [
#Ironclad
{title: 'Bash', belongs_to: 'Ironclad', type_of_card: 'Attack', energy: '2', description: 'Deal 8(10) damage. Apply 2(3) Vulnerable.', rarity: 'Basic'},
{title: 'Defend', belongs_to: 'Ironclad', type_of_card: 'Skill', energy: '1', description: 'Gain 5(8) Block.', rarity: 'Basic'},
{title: 'Strike', belongs_to: 'Ironclad', type_of_card: 'Attack' , energy: '1' , description: 'Deal 6(9) damage.', rarity: 'Basic'},
{title: 'Anger' , belongs_to: 'Ironclad' , type_of_card: 'Attack' , energy: '0' , description: 'Deal 5(7) damage. Add a copy of this card to your discard pile.', rarity: 'Common'},
{title: 'Armaments' , belongs_to: 'Ironclad' , type_of_card: 'Skill' , energy: '1(0)' , description: 'Gain 5 Block. Upgrade a(ALL) card(s) in your hand for the rest of combat.', rarity: 'Common'},
{title: 'Body Slam' , belongs_to: 'Ironclad' , type_of_card: 'Attack' , energy: '1' , description: 'Deal damage equal to your current Block. ', rarity: 'Common'},
{title: 'Clash' , belongs_to: 'I
@Joe-Gigs
Joe-Gigs / word_count.rb
Created March 15, 2017 16:34
Letter counter using Ruby
def letter_count(str)
counts = {}
str.each_char do |char|
next if char == " "
counts[char] = 0 unless counts.include?(char)
counts[char] += 1
end
puts counts.sort_by {|k,v| v}.reverse
end