Skip to content

Instantly share code, notes, and snippets.

View jasonnoble's full-sized avatar

Jason Noble jasonnoble

View GitHub Profile
# Paste this into your snippets file (in menu Atom > Open Your Snippets)
'.source.ruby':
'pry':
'prefix': 'pry'
'body': 'require "pry"\nbinding.pry'
@jasonnoble
jasonnoble / install_dash_gem_docs.rb
Last active December 26, 2021 03:42 — forked from spilth/install_dash_gem_docs.rb
Installs the Dash docs for all the Ruby Gems in your Gemfile
#!/usr/bin/env ruby
#
# Prerequisites:
# gem install bundler
# bundle install
dependencies = `bundle show | grep '*' | awk '{print $2, $3}' | sed -e 's/(//' -e 's/)//'`.split("\n")
dependencies.each do |dependency|
(gem_name, version) = dependency.split
@jasonnoble
jasonnoble / jasonnoble-prework.md
Last active January 18, 2017 20:07 — forked from mbburch/prework.md
An example template for your Turing pre-work Gist

Let us Rebase

This weekend, while you're doing your mini-projects we are going to get some practice with 2 things.

  • Hound - A tool that monitors your pull requests and will notify you of syntax and style errors within your code.
  • Rebasing - a git tool that will allow you to clean up your commit messages.

What are we going to do?

First - Integrate Hound in your project.

# Add command in TextMate
# Mapped to F1
# Update Path to File
Save: Nothing
Command(s):
A=${TM_PROJECT_DIRECTORY:-""}
B=${A##*/}