Skip to content

Instantly share code, notes, and snippets.

View brownmike's full-sized avatar

Mike Brown II brownmike

View GitHub Profile
@brownmike
brownmike / autoexec.cfg
Last active August 29, 2015 14:24
CS:GO Config
// autoexec.cfg
// ============
// = Bindings =
// ============
bind "kp_end" "buy ak47; buy m4a1;"
bind "kp_downarrow" "buy galilar; buy famas;"
bind "kp_pgdn" "buy awp;"
bind "kp_leftarrow" "buy bizon;"
@brownmike
brownmike / cards.rb
Created January 15, 2014 15:59
Save me
# TODO: Create InvalidCard, DuplicateCard & InvalidDeck exceptions
class Card
# 11 - 14 represent Jack through Ace respectively
VALUES = (2..14).to_a
SUITS = [:spades, :clubs, :hearts, :diamonds]
attr_reader :value, :suit
def initialize value, suit
@brownmike
brownmike / ruby_monk_primer.rb
Last active July 27, 2016 11:27
Ruby Monk Primer My solutions to all problems in ascending order
# Problem Statement
# Create a class Calculator, which performs addition and subtraction of two numbers at a time.
class Calculator
def add(a, b)
a+b
end
def subtract(a, b)
a-b
end