Skip to content

Instantly share code, notes, and snippets.

View QuintinAdam's full-sized avatar
:shipit:

Quintin Adam QuintinAdam

:shipit:
  • Wayfinder
  • Japan
View GitHub Profile
@QuintinAdam
QuintinAdam / Pry-show-doc.md
Last active December 24, 2015 01:29
Useing show-doc for Pry

Show-doc for Pry

Browsing documentation in Pry is easy with the show-doc command. If you every want to look a methods documentation while working on your code, show-doc will save you time.

Basics of show-doc

Running the -h or --help option on the show-doc command will give you a basic over view of the different options and examples.

[1] pry(main)> show-doc -h
@QuintinAdam
QuintinAdam / Snippet: Gemfile
Last active December 26, 2015 04:49
Snippet: Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.15'
# gem 'rails-i18n', '~> 3.0.0'
gem 'simple_form'
# gem 'devise'
gem 'figaro'
gem 'pg'
@QuintinAdam
QuintinAdam / gist:7259794
Last active December 27, 2015 03:29
Basic Rails Set Ups

Some of the basic setup for the gems I use the most.

source 'https://rubygems.org'

  gem 'rails', '3.2.15' 
  gem 'simple_form'
  gem 'devise'
  gem 'figaro'
@QuintinAdam
QuintinAdam / .powenv
Created December 1, 2013 05:58 — forked from beneggett/.powenv
# detect `$rvm_path`
if [ -z "${rvm_path:-}" ] && [ -x "${HOME:-}/.rvm/bin/rvm" ]
then rvm_path="${HOME:-}/.rvm"
fi
if [ -z "${rvm_path:-}" ] && [ -x "/usr/local/rvm/bin/rvm" ]
then rvm_path="/usr/local/rvm"
fi
# load environment of current project ruby
if
@QuintinAdam
QuintinAdam / sublimeplugins.md
Last active June 30, 2019 23:21
Sublime extras

Setting up your environment can be difficult when you're first starting with Ruby. We want to get the following installed:

  • Git
  • Ruby 2.2
  • A text editor

The setup instructions are broken down by the following platforms: Mac

Mac OS

{
"font_face": "Menlo",
"font_size": 20.0,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"save_on_focus_lost": true,
"translate_tabs_to_spaces": true

#HTML, CSS, Git

###Set up a Repository on Github

  • New Repo.
  • Add a Readme to the Project.
  • In terminal navigate to where you want the project to be.
  • Clone your repo to your computer.

###HTML Practice

  • Think of a topic you want for your website.
@QuintinAdam
QuintinAdam / GameOfLife.markdown
Last active June 30, 2019 23:21
Conway's Game of Life

#Conway's Game of Life

###Goal

  • Create a program based on the rules of Conway's Game of Life.

###Basics

  • The goal of the program will be to track the changes of 'cells'.
  • Cells can ether be 'Alive' or 'Dead'.