Skip to content

Instantly share code, notes, and snippets.

View kcomandich's full-sized avatar

Kirsten Comandich kcomandich

View GitHub Profile
@kcomandich
kcomandich / tennis.rb
Last active November 5, 2020 06:37 — forked from mcgain/tennis.rb
# This is not my code, I took it from https://blog.arkency.com/10-lessons-learnt-from-the-ruby-refactoring-kata-tennis-game/.
# I'd advise not clicking through to that link since it shows some refactoring.
require 'minitest/autorun'
class TennisGame1
def initialize(player1Name, player2Name, p1Points, p2Points)
@player1Name = player1Name
@player2Name = player2Name
@kcomandich
kcomandich / parse_attendees.rb
Last active August 29, 2015 14:02 — forked from reidab/parse_attendees.rb
script for parsing Eventbrite data to generate csv used to print OS Bridge badges.
require 'csv'
ATTENDEE_CSV = 'Attendees.csv'
BADGE_CSV_OUTPUT = 'Badges.csv'
AttendeeStruct = Struct.new(:last_name,
:first_name,
:ticket_type,
:discount_code,
:twitter,
@kcomandich
kcomandich / namewindow.sh
Last active December 14, 2015 02:59 — forked from sanity/gist:222607
script to name the window in iTerm
#!/bin/bash
# A simple script which will name the window in iTerm
# usage:
# $ namewindow New window name
echo -ne "\033]2;"$@"\007"
@kcomandich
kcomandich / sauteedbrusselssprouts
Last active November 26, 2020 08:42
Sauteed Brussels Sprouts with Hazelnuts
1 pound Brussels sprouts
3 Tb olive oil
Salt & freshly ground black pepper
1/2 cup chopped hazelnuts
2 Tbsp soy sauce
1 Tbsp garlic
2 cups chopped shallots
grated carrot