Skip to content

Instantly share code, notes, and snippets.

View JemiloII's full-sized avatar

Brian Jemilo II JemiloII

View GitHub Profile
@JemiloII
JemiloII / Load Sails.io.js
Created December 16, 2014 17:33
Proper way to load Sails.io.js
<script>
(function onLoad() {
var io;
Object.defineProperty(window, 'io', {
get: function get() {
return io;
},
set: function set(value) {
var sails;
io = value;
@JemiloII
JemiloII / ok.js
Last active August 29, 2015 14:03
Changing up my json to fit ember
/**
* 200 (OK) Response
*
* Usage:
* return res.ok();
* return res.ok(data);
* return res.ok(data, view);
* return res.ok(data, redirectTo);
* return res.ok(data, true);
*
@RunnerRick
RunnerRick / .sails-ember-bootstrap.md
Last active May 8, 2016 17:24
How To Integrate Sails, Ember, and Twitter Bootstrap