Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jamesdabbs's full-sized avatar

James Dabbs jamesdabbs

View GitHub Profile
@jamesdabbs
jamesdabbs / AIR.md
Created March 14, 2014 19:45
ATL Intermediate Ruby

As I announced at the last ATLRUG, I've been thinking about starting something of a Ruby study group. I'd love to get people's feedback, but here's the rough idea:

The Format

Each meeting we'll have an organizer who brings in a topic or problem and typically some Ruby code that starts to tackle the problem. That person then leads the group with some loose guidelines:

  • Focus on the code - every meeting should involve rolling up your sleeves, writing some Ruby code, and solving a problem (or at least making significant progress towards doing so)
  • Converse, don't present - the goal is for this to be interactive, and for members to be able to talk through different approaches, ask questions, and generally explore the concepts

So the actual content will depend greatly on the organizer and members. That said, I have some topics that I / people I've talked to would be happy to start with:

The first Intermediate Ruby group is upon us, and I have some logistics specifics:

TL;DR: Come early. Come hungry. Come to the first floor parking deck entrance, passing by the Wells Fargo en route.

Getting There

The presentation starts at 7:00 (today, Wednesday, May 21st), but we'll have a veritable cornucopia of food and drinks starting around 6:30 (thanks to Emcien and Insightpool). I'll be hanging out at the Octane downstairs as soon as my morning meetings are done, so feel free to swing by early, hang out and play some ping pong.

Parking at the ATV is free in the evenings (which I believe technically start at 6; you're on your own before that). You should be able to get in via the first floor entrance from the parking deck. The Piedmont road entrance is blocked off for construction, so you'll need to come in from Lenox / Tower road, past the Wells Fargo parking lot. If you'll forgive the terrible paint job:

@jamesdabbs
jamesdabbs / bash_prompt.sh
Created August 19, 2014 17:43
Bash Prompt, mk II
ORANGE="\[\e[38;5;214m\]"
YELLOW="\[\e[38;5;228m\]"
CYAN="\[\e[0;36m\]"
WHITE="\[\e[1;37m\]"
LIGHT="\[\e[0;37m\]"
DARK="\[\e[38;5;240m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
gem_data = GemFetcher.fetch params[:name_of_gem]
gem_model = Gem.new description: gem_data[:description], ...
gem_model.save!
redirect_to ...

Keybase proof

I hereby claim:

  • I am jamesdabbs on github.
  • I am jdabbs (https://keybase.io/jdabbs) on keybase.
  • I have a public key whose fingerprint is 8428 B038 A487 D956 2F63 174B FF49 F856 394F 613C

To claim this, I am signing this object:

@jamesdabbs
jamesdabbs / hou-guest-lecture.md
Created January 12, 2015 17:11
HOU Guest Lecture

Quiz!

I've been reading Make It Stick (A+ would recommend), and trying to do more information-retrieval practice (as a good way to make information stick). This is ungraded, but should be pretty quick.

Find the sum of these numbers. HipChat me the sum -

5,11,87,49,52,99
20,5,67,34,12
92,57,91,77,45,29,56,38,18,68,92,26,42,55,46
@jamesdabbs
jamesdabbs / classes-quiz.rb
Created January 13, 2015 15:19
Short quiz on classes
# Download and run this file, and get the specs passing
# You might need to `gem install minitest`
require 'minitest'
class Dog
# You need to define this class so that the specs below pass
end
require 'minitest/autorun'
@jamesdabbs
jamesdabbs / good_ideas.rb
Created January 15, 2015 20:41
Production Ready™
require 'pry'
require 'binding_of_caller'
class Symbol
def and_then snd=nil
fst = self.to_s
binding.of_caller(1).eval %{
define_method :#{fst}_and_then_#{snd} do
send :#{fst}_without_#{snd}
send :#{snd}
@jamesdabbs
jamesdabbs / sync
Created February 2, 2015 01:46
Sample script for syncing laptop with home server, suitable for cron-ing
#!/usr/bin/env ruby
require 'json'
require 'open3'
home = "/Users/james"
name = `hostname`.downcase
server = "walt.local"
mirror = "#{server}:/storage/mirrors/#{name}"