Skip to content

Instantly share code, notes, and snippets.

Joël Cox joelcox

View GitHub Profile
Samsinite / array.js
Created Jan 26, 2015
Array transform for ember-data
View array.js
import Ember from 'ember';
import DS from 'ember-data';
export default DS.Transform.extend({
serialize: function(deserialized) {
return !!deserialized ? deserialized.toArray() : null;
deserialize: function(serialized) {
return Ember.A(serialized);
dhrrgn / init.rb
Created Apr 1, 2011
A simple initialization script to create vhosts.
View init.rb
#!/usr/bin/env ruby
# USAGE: sudo ./init.rb project_name path/to/web/root
# NOTE: This file must be run with root privileges (sudo).
# You must also give it exec permissions: chmod +x init.rb
# This should include the trailing slash
DEFAULT_ROOT = '/Users/dan/Sites/'
VHOST_FOLDER = '/etc/apache2/sites/'
You can’t perform that action at this time.