Skip to content

Instantly share code, notes, and snippets.

@tannerwelsh
tannerwelsh / recursive_touch.sh
Created September 4, 2012 22:25
Touch a new file in a directory and all of its subdirectories
#!/bin/bash
# UPDATE: This is a waste of code. This script can
# be executed in a single line:
# find * -type d -exec touch '{}/.gitkeep' \;
# Execution takes two arguments:
# 1: Name of directory to traverse
# 2: Name of file to create in each subdirectory
@tannerwelsh
tannerwelsh / twelsh_week4_ruby_solution.rb
Created July 12, 2012 21:08
Tanner's solution to the Week 4 Ruby Assessment
# DBC Week 4 Ruby Assessment
# Tanner Welsh
# ____________
######################################################################################
### PART 1 : OO Design ###############################################################
# module AddressBook
#
@tannerwelsh
tannerwelsh / google_drive_parsing.rb
Created June 23, 2012 05:40 — forked from Pcushing/google_drive_parsing.rb
Log into google docs and parse the data, work in progress
require 'rubygems'
require 'google_drive'
require 'csv'
# Go get your consumer key, client_secret, and client_id for Google Drive here https://code.google.com/apis/console/
consumer_key = 'INSERT YOUR CONSUMER_KEY HERE'
client_secret = 'INSERT YOUR CLIENT_SECRET HERE'
client_id = 'INSERT YOUR CLIENT_ID HERE'
client = OAuth2::Client.new(