Skip to content

Instantly share code, notes, and snippets.

View robneville73's full-sized avatar

Rob Neville robneville73

View GitHub Profile
@sgk
sgk / trac2down.py
Created October 14, 2011 09:35
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active April 21, 2023 17:14
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@robneville73
robneville73 / commit.js
Created November 3, 2015 16:23
combined functions from ember data 1.13.9 dealing with persisting records to the store with heavy comments
//record (internal-model)
save: function(options) {
var promiseLabel = "DS: Model#save " + this;
var resolver = Ember.RSVP.defer(promiseLabel); //http://emberjs.com/api/classes/RSVP.html#method_defer
this.store.scheduleSave(this, resolver, options);
return resolver.promise;
},
//store.js