This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/*global Ember*/ | |
/*global DS*/ | |
/*global io*/ | |
'use strict'; | |
var RSVP = Ember.RSVP; | |
var get = Ember.get; | |
DS.SailsRESTAdapter = DS.RESTAdapter.extend({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.ApplicationAdapter = DS.SailsSocketAdapter.extend({ | |
host: 'http://localhost:1337' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Member = DS.Model.extend({ | |
username: DS.attr('string'), | |
type: DS.attr('string'), | |
createdAt: DS.attr('date'), | |
updatedAt: DS.attr('date') | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storage.prototype._setItem = Storage.prototype.setItem; | |
Storage.prototype.setItem = function(key, value, type, name) { | |
var eventName = name || 'storage'; | |
var eventObject = { | |
"target": window, | |
"type": "storage", | |
"bubbles": false, | |
"cancelable": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bar.js | |
* | |
* @description :: Model for the Bar Collection | |
* @docs :: http://sailsjs.org/#!documentation/models | |
*/ | |
module.exports = { | |
attributes: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function onLoad() { | |
var io; | |
Object.defineProperty(window, 'io', { | |
get: function get() { | |
return io; | |
}, | |
set: function set(value) { | |
var sails; | |
io = value; |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<table cellspacing="0" cellpadding="4" rules="rows" border="0" id="myDataGrid" style="color:Black;background-color:White;border-color:White;border-width:0px;border-style:None;font-family:Verdana;font-size:10px;width:336px;border-collapse:collapse;"> | |
<tbody><tr class="brickborder" style="color:#666666;background-color:White;font-weight:bold;"> | |
<td class="brickborder"> </td><td class="brickborder" style="color:#666666;">Brick Name</td><td class="brickborder" align="right" style="color:#666666;">Price</td><td class="brickborder"> </td><td class="brickborder"> </td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var colors = require('colour'), | |
setTheme = ['silly', 'input', 'verbose', 'prompt', 'info', 'data', 'help', 'warn', 'debug', 'error']; | |
colors.setTheme({ | |
silly: 'rainbow', | |
input: 'grey', | |
verbose: 'cyan', | |
prompt: 'grey', | |
info: 'green', | |
data: 'grey', | |
help: 'cyan', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include https://cdn.rawgit.com/ramda/ramda/master/dist/ramda.min.js | |
// var _ = require('ramda'); | |
var foo = _.curry(function (a, b){ | |
return a + b; | |
}); | |
var bar = foo(2); //=> function(b){ return 2 + b; } | |
bar(3); //=> 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Adds a parent property to the children objects in-order to traverse the child objects back to their parents. | |
* | |
* Example of input parent array: | |
* [ | |
* { | |
* name: 'yumiko', | |
* children: [ | |
* { | |
* name: 'sally', |