Skip to content

Instantly share code, notes, and snippets.

Avatar

Ira Herman iscott

View GitHub Profile
View RPS Requirements
#RPS Lab Requirements
* Web Page/Web App that lets you play Rock Paper Scissors
* 2 Players (on the same screen)
* Win Logic (Tells the user who won)
* Custom styling (Fonts, Background, Images)
* Pictures for Rock, Paper, and Scissors
##Super Optional Bonus Challenge
* Play vs Computer (AI)
@iscott
iscott / item_spec.rb
Created Mar 2, 2015
Testing scopes with RSPEC
View item_spec.rb
require 'rails_helper'
RSpec.describe Item, :type => :model do
before(:each) do
@purchased_item = Item.create(
:name => "Item1",
:qty => 1,
:is_purchased => true
)
View gist:e88616c9c0f1422e1ae3
import UIKit
class ViewController: UIViewController {
@IBOutlet var webView: UIWebView!
@IBAction func goBack(sender: AnyObject) {
webView.goBack()
}