Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathaniel Watts thewatts

  • Conway, AR
View GitHub Profile
@davejlong
davejlong / auth.gemspec
Last active Sep 2, 2015
Capybara with RSpec with a Rails Engine
View auth.gemspec
# auth.gemspec
require 'auth/version'
Gem::Specification.new do |s|
...
s.add_dependency 'rails', '~> 4.0.4'
s.add_dependency 'devise', '~> 3.2.4'
s.add_development_dependency 'sqlite3'
View README.mkd

Make a client

curl http://balanced-hangman.herokuapp.com

Hopefully you'll see something like

{
 "index": "/", 
 "me": "/me", 
@maxim
maxim / tm2iterm.rb
Created Jun 10, 2012
Convert TextMate themes into iTerm 2 color schemes.
View tm2iterm.rb
#!/usr/bin/env ruby
#
# This script is an astonishing feat of top notch
# rockstar craftsmanship. It totally uses artificial
# intelligence to extract colors out of tmTheme and
# build an itermcolors scheme file for iTerm2.
#
# I know this sounds crazy, but it actually knows
# approximately what colors should be used in the
# ANSI list, and tries to find nearest colors from
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active Jun 1, 2020
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
You can’t perform that action at this time.