Skip to content

Instantly share code, notes, and snippets.

View JameyMcAuliffe's full-sized avatar

Jamey McAuliffe JameyMcAuliffe

View GitHub Profile
@JameyMcAuliffe
JameyMcAuliffe / auth.md
Created August 4, 2016 03:33 — forked from iamtylerd/auth.md
Firebase Auth Rules

Rules

This is not a full proof way to validate but it will ensure that only a specific UID can. Make sure that you install via Bower angular-local-storage

  1. Link it in the HTML
  2. Add 'LocalStorageModule' to your App (dependency)
  3. Pass 'localStorageService' to any controllers that need to get the user
  4. set let currentUser = localStorageService.get("currentUser"); in the controller.
  • Local Storage is used to cache the user locally since Firebase does not keep them logged in on a refresh
@JameyMcAuliffe
JameyMcAuliffe / _extends.scss
Created July 13, 2016 15:15 — forked from JoeShep/Gruntfile.js
SASS Setup with Gulp
// Use extend when you want to share the same code between multiple elements
// The % means it won’t get printed to the stylesheet unless extended
%block {
width: 100px;
height: 100px;
border: 2px solid;
display: inline-block;
}
@JameyMcAuliffe
JameyMcAuliffe / _extends.scss
Created July 13, 2016 15:14
SASS Setup with Gulp
// Use extend when you want to share the same code between multiple elements
// The % means it won’t get printed to the stylesheet unless extended
%block {
width: 100px;
height: 100px;
border: 2px solid;
display: inline-block;
}