Skip to content

Instantly share code, notes, and snippets.

Ira Herman iscott

  • Logic Software
  • Santa Monica, CA
Block or report user

Report or block iscott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@iscott
iscott / simple_authentication_rails_5_bcrypt_and_has_secure_password.md
Last active Sep 14, 2019
Cheat Sheet: Simple Authentication in Rails 5 with has_secure_password
View simple_authentication_rails_5_bcrypt_and_has_secure_password.md

Cheat Sheet: Simple Authentication in Rails 5 with has_secure_password

The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.

First the simplest/core layers, then optional layers depending on which features/functionality you want.

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Ruby on Rails Version 4 or 5
View django_command_lines_cheatsheet.md

Run Server:

python3 manage.py runserver

Create DB:

createdb <dbname>

Make migrations:

python3 manage.py makemigrations

Migrate DB:

@iscott
iscott / mean_app.md
Last active Sep 11, 2018
MEANbean Full MEAN stack CRUD app cheatsheet
View mean_app.md

Cheat Sheet: MEANbean coffee shop

A cheatsheet by Ira Herman

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Node JS 6.x/MEAN Stack
OUTCOME A full stack MEAN application with CRUD actions
@iscott
iscott / atom_packages.md
Created May 17, 2018
My Recommended Atom Packages and Theme to make Atom a Fully-Featured Editor
View atom_packages.md

Atom Packages & Notes

This document will recommend some of my favorite packages (plugins, add-ons, whatever you want to call them...they're awesome) for the Atom text editor. These give atom many of the features of a full IDE (Integrated Development Environment).

Atom Website

To browse & install packages, (in the menu bar) go to Atom >> Preferences >> Install and search for your desired package. Click install. That's it!

There are links to the package documentation from the Atom site. You can also view instructions on how to use each package from the packages menu Atom >> Preferences >> Packages

@iscott
iscott / Javascript functions and conditionals using (){}, and semicolons.md
Last active Jun 7, 2017
Javascript functions and conditionals using (){}, and semicolons cheatsheet
View Javascript functions and conditionals using (){}, and semicolons.md

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

CURLY BRACES:

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

Keywords like

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()
}
You can’t perform that action at this time.