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
| // 1. Instantiate a Loader in the global.html template | |
| SREPLoader = new YAHOO.util.YUILoader({ | |
| base: '{% vurl "/static/script/" %}', | |
| loadOptional: false, | |
| combine: true, | |
| require:["json"], | |
| filter: "MIN", | |
| allowRollup: true, | |
| onSuccess: function() { |
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
| // 1. Custom Namespace and modules | |
| // modules.js | |
| YOURAPP = {}; | |
| YOURAPP.modules = { // some sample modules | |
| 'jq' : { type: 'js', varName: 'jquery', fullpath: 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' }, | |
| 'jqueryui' : { type: 'js', varName: 'jqueryui', path: 'js/jquery-ui-1.8rc3.custom.min.js', requires: ['jq', 'jqueryui.css'] }, | |
| 'jqueryui.css' : { type: 'css', varName: 'jqueryui.css', path: 'css/redmond/jquery-ui-1.8rc3.custom.css' }, | |
| 'tester' : { type: 'js', varName: 'tester', path: 'js/tester.js' } | |
| }; |
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
| // 1. Custom Namespace and modules | |
| // modules.js | |
| YOURAPP = {}; | |
| YOURAPP.modules = { // some sample modules | |
| 'jq' : { type: 'js', varName: 'jquery', fullpath: 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' }, | |
| 'jqueryui' : { type: 'js', varName: 'jqueryui', path: 'js/jquery-ui-1.8rc3.custom.min.js', requires: ['jq', 'jqueryui.css'] }, | |
| 'jqueryui.css' : { type: 'css', varName: 'jqueryui.css', path: 'css/redmond/jquery-ui-1.8rc3.custom.css' }, | |
| 'tester' : { type: 'js', varName: 'tester', path: 'js/tester.js' } | |
| }; |
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
| // Generates Icons and Styling for <a> elements based on the href parameter value | |
| // for example: <a href="http://www.twitter.com/dmosher"> would get a twitter icon and some default styling | |
| // Ideally, I'd like to have a list like ["twitter", "facebook", ...] that I can loop over to generate the selectors without repetition. | |
| @import sprites.sass | |
| !sprite_default_size = 16px | |
| !sprite_default_margin = 10px | |
| !sprite_image_default_width = !sprite_default_size | |
| !sprite_image_default_height = !sprite_default_size |
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
| application: unknown | |
| version: unknown | |
| runtime: python | |
| api_version: 1 | |
| # DELETE_ME/ is replaced by '' (empty string)during the build/deploy process. | |
| # dev_appserver will not load _any_ files in the skip_files section | |
| # any more, so during devel, we do not want to have skip_files capture | |
| # .google_appengine or any other python libs. however, we do not want to deploy | |
| # these files, so we skip them during deployment. |
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
| // A vehicle | |
| { | |
| id : XIFJS93, | |
| make : 'Honda', | |
| model : 'Civic', | |
| year : 1999, | |
| engine : [9FAJFI] | |
| ... | |
| } |
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
| <script type="text/javascript"> | |
| SREP.Loader = YUI({ | |
| base: '{% vurl "/static/script" %}', | |
| modules: SREP.Modules.common, | |
| charset: 'utf-8', | |
| timeout: 10000, | |
| root: "", | |
| combine: false, | |
| filter: "raw", |
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
| //Real implementation | |
| var Universe; | |
| var Cell = function() { | |
| this.size = 1; | |
| this.neighbors = []; | |
| this.breathing = true; | |
| }; | |
| Cell.prototype.isDead = function() { |
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
| { | |
| results : [ | |
| { | |
| "id" : "240949", | |
| "name" : "240949-AWESOME GROCERY STUFF" | |
| }, | |
| ... | |
| ] | |
| } |
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 lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Form Float Isolation!</title> | |
| <style type="text/css"> | |
| div { /** Basic Scaffolding **/ | |
| border: 1px solid #ccc; | |
| } | |