A huge "Thank You" to @runspired for all the help in the #ember-data
Ember Community Discord!
// models/foo-bar.js
export default class FooBar extends Model {}
JSON API "type" === "modelName" === "foo-bar"
.
A huge "Thank You" to @runspired for all the help in the #ember-data
Ember Community Discord!
// models/foo-bar.js
export default class FooBar extends Model {}
JSON API "type" === "modelName" === "foo-bar"
.
From a terminal run the following commands:
git clone [email protected]:emberjs/ember.js
cd ember.js
npm install
npm start
While that is running open another terminal and run the following (starting from the ember.js
folder you cloned a moment ago):
/** | |
* `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes | |
* all items from all source arrays in an efficient way. | |
* | |
* Usage: | |
* | |
* ```javascript | |
* var obj = Ember.Object.create({ | |
* people: [ | |
* { |
/* | |
* Little example of how to use ```socket-io.client``` and ```request``` from node.js | |
* to authenticate thru http, and send the cookies during the socket.io handshake. | |
*/ | |
var io = require('socket.io-client'); | |
var request = require('request'); | |
/* | |
* This is the jar (like a cookie container) we will use always |
Ember.ArrayFilter = Em.ArrayProxy.extend({ | |
init: function() { | |
this._filterContentDidChange(); | |
this._super(); | |
}, | |
arrangedContent: function() { | |
var af = this; | |
return Ember.ArrayFilterSortProxy.create({ | |
arrayFilter: af, |
/* | |
This javascript closure will create a timeline manager to let you filter | |
out users and keywords from your stream. In theory it stores the info | |
in a cookie for one day, but cookie setting appears to be not working currently. | |
The manager object has methods for showing a hidden username or keyword, | |
but currently no buttons to do so. | |
Keyword filtration is case sensitive and is done based on a single string | |
match on the tweet's content, it does not match usernames that might |
/* | |
As of 5/13/2013 3:06PM Central Time this script is working. Tweet @runspired to report malfunctions. | |
*/ | |
/* | |
Use the Javascript console in Google Chrome and the tcx2nikeplus converter located here: http://www.awsmithson.com/tcx2nikeplus/ | |
This will take some time to run but will port all of your garmin data to nike+. |
from django import http | |
try: | |
from django.conf import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS | |
XS_SHARING_ALLOWED_METHODS = settings.XS_SHARING_ALLOWED_METHODS | |
XS_SHARING_ALLOWED_HEADERS = settings.XS_SHARING_ALLOWED_HEADERS | |
XS_SHARING_ALLOWED_CREDENTIALS = settings.XS_SHARING_ALLOWED_CREDENTIALS | |
except AttributeError: | |
XS_SHARING_ALLOWED_ORIGINS = '*' |