Skip to content

Instantly share code, notes, and snippets.

@mrloop
mrloop / gist:2953983
Created June 19, 2012 12:51
ember data for jsfiddle
(function(exports) {
window.DS = Ember.Namespace.create();
})({});
(function(exports) {
DS.Adapter = Ember.Object.extend({
commit: function(store, commitDetails) {
@mrloop
mrloop / gist:2953982
Created June 19, 2012 12:51
ember data for jsfiddle
// ==========================================================================
// Project: Ember Data
// Copyright: ©2011 Living Social Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
(function(a){window.DS=Ember.Namespace.create()})({}),function(a){DS.Adapter=Ember.Object.extend({commit:function(a,b){b.updated.eachType(function(b,c){this.updateRecords(a,b,c.slice())},this),b.created.eachType(function(b,c){this.createRecords(a,b,c.slice())},this),b.deleted.eachType(function(b,c){this.deleteRecords(a,b,c.slice())},this)},createRecords:function(a,b,c){c.forEach(function(c){this.createRecord(a,b,c)},this)},updateRecords:function(a,b,c){c.forEach(function(c){this.updateRecord(a,b,c)},this)},deleteRecords:function(a,b,c){c.forEach(function(c){this.deleteRecord(a,b,c)},this)},findMany:function(a,b,c){c.forEach(function(c){this.find(a,b,c)},this)}})}({}),function(a){DS.fixtureAdapter=DS.Adapter.create({fi
@mrloop
mrloop / enable_custom_http_headers-v3.patch
Created June 6, 2011 09:33
Copy of patch for custom headers in httperf 0.9.0 including setting custom user agent
/* from http://code.google.com/p/httperf/issues/detail?id=1 */
Index: configure.ac
===================================================================
--- configure.ac (revision 132)
+++ configure.ac (working copy)
@@ -83,6 +83,8 @@
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getopt_long])