Skip to content

Instantly share code, notes, and snippets.

View jongravois's full-sized avatar

Jonathan Gravois jongravois

View GitHub Profile
@jongravois
jongravois / SassMeister-input.scss
Created April 3, 2016 21:25 — forked from davidkpiano/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$scotch-color-key: 'base' !default;
$scotch-colors: (
'primary': (
'base': #8e3329,
@jongravois
jongravois / app.js
Last active August 29, 2015 14:15 — forked from sonicparke/app.js
(function() {
//'use strict';
angular.module('app', [
/* Shared modules */
'app.core',
/* Feature areas */
'app.layout'
@jongravois
jongravois / q.js
Last active August 29, 2015 14:12 — forked from robwormald/q.js
angular.module('LoanManager',function(LoansFactory){
function updateLoansData(response){
var allLoans = response.data.data;
return $q.all(allLoans.map(updateLoanData));
}
function updateLoanData(loan){
return $q.all({
need_vote: getPendingVotes(loan),
@jongravois
jongravois / eloquent.md
Last active August 29, 2015 14:11 — forked from msurguy/eloquent.md

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';