Skip to content

Instantly share code, notes, and snippets.

View iscott's full-sized avatar

Ira Herman iscott

View GitHub Profile
@iscott
iscott / Javascript functions and conditionals using (){}, and semicolons.md
Last active June 7, 2017 21:54
Javascript functions and conditionals using (){}, and semicolons cheatsheet

Javascript functions and conditionals using (){}, and semicolons

CURLY BRACES:

Curly braces {} almost always indicate a block of code. { means START } means END

Keywords like

#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 March 2, 2015 18:37
Testing scopes with RSPEC
require 'rails_helper'
RSpec.describe Item, :type => :model do
before(:each) do
@purchased_item = Item.create(
:name => "Item1",
:qty => 1,
:is_purchased => true
)
@iscott
iscott / gist:e88616c9c0f1422e1ae3
Created August 7, 2014 03:45
Web Wrapper App
import UIKit
class ViewController: UIViewController {
@IBOutlet var webView: UIWebView!
@IBAction func goBack(sender: AnyObject) {
webView.goBack()
}