Skip to content

Instantly share code, notes, and snippets.

View barnes7td's full-sized avatar

Timothy Barnes barnes7td

  • CleanSlate
  • Indianapolis, IN
View GitHub Profile
@barnes7td
barnes7td / sublime_setup.md
Last active March 28, 2024 17:59
Sublime Terminal Setup

Setup Terminal for Sublime Shorcut "subl":

Open terminal and type:

1. Create a directory at ~/bin:

mkdir ~/bin

2. Copy sublime executable to your ~/bin directory:

@barnes7td
barnes7td / sublime_plugins.md
Created October 5, 2012 02:07
Sublime Plugins for Ruby and Rails

Sublime Plugins for Ruby and Rails

General

I would start by installing the Sublime Package Control manager. This tool will allow you to install the other plugins without having to clone git repositories and copying them to the correct folders. Instead you will the command drop-down menu with "Ctrl + Shift + P" and then scrolling down until you see "Package Control: Install Package". A search bar will pop up and you can type the name of a package, click on the name and it will self install. If you have problems setting any of these up email me at barnes7td@gmail.com

Packages/Plugins

  1. Sublime Package Control - Install this first. This tool will allow you to easily install most (if not all) the other plugins in this list. (Ctrl + Shift + P, then select Package Control: Install Package)

  2. SublimeERB - This plugin auto creates the erb tags. (<% %>, <%= %>, etc.) (Ctrl +

@barnes7td
barnes7td / Git Workflows.pdf
Last active April 7, 2019 19:32
Basic Git Terms and Workflows
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barnes7td
barnes7td / same_number.rb
Last active March 12, 2019 01:34
Job Prep Same Number
# Create a method same_number? that takes a string of x's and o's and determines
# if there are the same number of x's as o's. "xooxxxxooxo" has more x's and
# therefore would return false. "xxooxxooxoxo" has the same amount of x's and o's,
# therefore would return true.
def same_number?(str)
end

git init - Create a repo from scratch.

git clone - Copy a repo from GitHub or other remote repo.

git add - Stage files or file changes to your local repo.

git commit - Commit (Save changes as a record) to the local repo.

git merge - Add changes from another branch onto current branch.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"title": "Gone with the Wind: The visual version",
"id": 12875,
"pages": [
{
"id": 12,
"number": 1,
"image": {
"filename": "scarlet.png",
"size": 215
# INSTRUCTIONS:
# Create a function named createArray. This function should:
# 1. Define a method named countries_visited.
# 2. The method should return an Array of the countries in alphabetical order..
# 3. The method should return an Array without duplicate values.
# Tests Given:
require 'action_dispatch/journey/core-ext/hash'
require 'action_dispatch/journey/router/utils'
require 'action_dispatch/journey/router/strexp'
require 'action_dispatch/journey/routes'
require 'action_dispatch/journey/formatter'
before = $-w
$-w = false
require 'action_dispatch/journey/parser'
$-w = before
// INSTRUCTIONS:
// Create a function named createArray. This function should:
// 1. take four arguments
// 2. return an array with those arguments as elements
// Tests Given:
var expect = require("chai").expect;