Skip to content

Instantly share code, notes, and snippets.

@daveduchene
daveduchene / gist:2892802
Created June 8, 2012 01:09
Load external dependency in Sproutcore
AdminUi.LoadingState = SC.State.extend({
enterState: function() {
SC.MODULE_INFO['arcGis'] = { scriptURL: 'https://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4' };
SC.Module.loadModule('arcGis', this.arcGisLoaded);
},
arcGisLoaded: function() {
dojo.require('esri.map');
// ...
@daveduchene
daveduchene / Gemfile
Created May 17, 2012 23:16
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
gem "tzinfo"
# Let's use thin