This file contains hidden or 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
| App = Em.Application.create(); | |
| App.MyController = Em.Controller.extend({ | |
| States: Em.StateManager.extend({ | |
| errorOnUnhandledEvent: false, // true by default | |
| enableLogging: false, // Will get noisy with a bunch of instances. | |
| start: Em.State.extend({ |
This file contains hidden or 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
| xml.instruct! | |
| xml.urlset :xmlns => 'http://www.sitemaps.org/schemas/sitemap/0.9' do | |
| xml.url do | |
| xml.loc "mysite.com" | |
| end | |
| sitemap.resources.each do |r| | |
| xml.url do | |
| xml.loc r.url | |
| end | |
| end |
This file contains hidden or 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
| # <%= data.article.title %> | |
| <%= data.article.body %> | |
| __Cool__! |
This file contains hidden or 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
| Issues.AutoloadHasMany = function(type, options) { | |
| options = options || {}; | |
| var pluralName = Issues.RESTAdapter.pluralize(Issues.RESTAdapter.rootForType(type)); | |
| var cachedName = '__autoloaded_' + pluralName; | |
| return Ember.computed(function(key, value) { | |
| var data = this.get('data'), | |
| store = this.get('store'), | |
| ids, id, association; |
This file contains hidden or 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
| gem "padrino-core", "0.10.6" | |
| gem "padrino-helpers", "0.10.6" |
This file contains hidden or 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
| require 'base64' | |
| require 'RMagick' | |
| include Magick | |
| module Imager | |
| class << self | |
| def registered(app) | |
| app.send :include, InstanceMethods | |
| app.ready do |
This file contains hidden or 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
| ENV = { | |
| CP_DEFAULT_CACHEABLE: true, | |
| VIEW_PRESERVES_CONTEXT: false, | |
| USE_ACCESSORS: false | |
| }; |
This file contains hidden or 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
| /** | |
| * PerlinNoise | |
| * | |
| * Tiling Exsample | |
| * (perlinNoise.noise(x, y, z) * (w - x) * (h - y) + perlinNoise.noise(x - w, y, z) * x * (h - y) + | |
| * perlinNoise.noise(x - w, y - h, z) * x * y + perlinNoise.noise(x, y - h, z) * (w - x) * y) / (w * h) | |
| * | |
| * @param seed | |
| * @see http://mrl.nyu.edu/~perlin/noise/ |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link href="stylesheets/border.css" rel="stylesheet"> | |
| <script src="javascripts/jquery-1.7.2.js"></script> | |
| <script src="javascripts/ember-0.9.7.1.js"></script> | |
| <script src="javascripts/ember-jui.js"></script> | |
| <script src="javascripts/popkit.js"></script> | |
| <script src="javascripts/border.js"></script> | |
| </head> |
This file contains hidden or 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
| compass_config do |compass| | |
| compass.sass_options = {:debug_info => true} | |
| end |