Skip to content

Instantly share code, notes, and snippets.

View jendiamond's full-sized avatar
🏠
Working from home

JenDiamond jendiamond

🏠
Working from home
View GitHub Profile
@jendiamond
jendiamond / todo.rb
Created November 30, 2012 17:39
chapter 2 todo
#!/usr/bin/env ruby
require 'rubygems'
require 'gli'
require 'todo-version'
include GLI::App
version Todo::VERSION
@jendiamond
jendiamond / gist:6064430
Created July 23, 2013 17:41
How to Set Up Bundler for Development
# How to Set Up Bundler for Development
## Fork Bundler
Go to the Bundler Github [https://github.com/bundler/bundler](https://github.com/bundler/bundler)
Press the fork button.
Fork Bundler so you can create pull requests with your changes
@jendiamond
jendiamond / How to Set Up Bundler for Development
Created July 23, 2013 17:42
How to Set Up Bundler for Development
# How to Set Up Bundler for Development
## Fork Bundler
Go to the Bundler Github [https://github.com/bundler/bundler](https://github.com/bundler/bundler)
Press the fork button.
Fork Bundler so you can create pull requests with your changes
@jendiamond
jendiamond / gist:6073372
Last active December 20, 2015 04:49
Week1Day4

Jen's Friday

I went over to General Assembly today. They screened the She++ Film. It was informational and inspiring. But my favorite part of the day was the panel of women developers after the film. Chris Meaono, Crystal Rose, Erica, Cherise & Shirin. Ted from G.A. was the moderator. Jessica was supposed to be on the panel but she was sick.

>This short documentary collects research and inspirational pieces of Silicon Valley's unsung heroes to galvanize us to explore our potential as 'femgineers'. Written and directed by recent Stanford University good girls gone geek, Ayna Agarwal and Ellora Israni, she++: The Documentary encourages the future CEOs, the innovative engineers, the techies and the fuzzies, the sisters, cousins, and daughters, to break away from the stereotype into a revolutionary field. As technology is becoming increasingly ubiquitous, all demographics must harness new ideas to transform and empo

##grep
our tests should test that it does not raise an error
another test to make sure it prints a friendly message.
grep -r "def ui" .
**grep -r recursive "whatever you are searching for" where**
http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/
@jendiamond
jendiamond / Week 2 Day 8
Created July 25, 2013 21:44
Week 2 Day 8
### To reproduce the "bundle i" error
1. Put **alias dbundle='ruby -I ~/Desktop/railsgirls/bundler/lib ~/Desktop/railsgirls/bundler/bin/bundle'** into you .bashrc file
Make sure you have the right path to your file.
You can locate the .bashrc file by running:
$ ls -a
2. Run
@jendiamond
jendiamond / gist:6084059
Last active December 20, 2015 06:09
Week 2 Day 8

Week 2 Day 8

Bash

Reproduce the bundle i error for the Bundler Repo

Our Quandary

How are we to reproduce the bundle i error for the Bundler repo we cloned.

@jendiamond
jendiamond / gist:6092778
Last active December 20, 2015 07:19
Week2 Day 9

Week 2 Day 9

Pass the Test

Hierarchy of Exceptions

Run tests: $ rspec spec/bundle_i_spec.rb

I got it to pass after feeling like the ground beneath me had shifted and I was hanging onto a thread of knowing what I was even trying to do.

@jendiamond
jendiamond / gist:6109491
Last active December 20, 2015 09:40
Week 3 Day 10

Week 3 Day 10

Unit Tests vs. Integrations Tests

Unit Tests

A unit test is a test written by the programmer to verify that a relatively small piece of code is doing what it is intended to do. They are narrow in scope, they should be easy to write and execute, and their effectiveness depends on what the programmer considers to be useful. The tests are intended for the use of the programmer, they are not directly useful to anybody else, though, if they do their job, testers and users downstream should benefit from seeing less bugs. -Nathan Hughes

Integration Tests

>>An integration test is done to demonstrate that different pieces of the system work together. Integration tests cover whole applications, and they require much more effort to put together. They usually require resources like database instances and hardware to be allocated for them. The integration tests do a more convincing j