Objective: Get familiar with Ruby basics
- July 20: Introduction to Ruby, Installation, and Setup
- July 22: Basics: Variables, Data Types
- July 24: Control Flow: Conditionals
import csv | |
with open('ruby-study-guide.tsv', 'r') as tsvfile: | |
reader = csv.reader(tsvfile, delimiter='\t') | |
with open('ruby-study-guide.csv', 'w') as csvfile: | |
writer = csv.writer(csvfile) | |
for row in reader: | |
writer.writerow(row) |
Thanks for saying you like my camera set up! As you asked, here are the deets. There are cheaper ways to achieve some of the same results and possibly better ways to - however this is what I ended up with.
String.prototype.getInitials = function(glue){ | |
if (typeof glue == "undefined") { | |
var glue = true; | |
} | |
var initials = this.replace(/[^a-zA-Z- ]/g, "").match(/\b\w/g); | |
if (glue) { | |
return initials.join(''); | |
} |
It all begins with Homebrew. This setup uses Homebrew for almost everything, including things your Mac ships with, like Python.
Managing everything in Homebrew lets us use the most up-to-date packages available, and means we are not subject to any customizations, however small, Apple makes to their packaged software.