This file contains 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
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); |
This file contains 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
#!/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/' |