masterbranch is always production-ready, deployable, 100% green test suite- New development is done on feature branches, with frequent rebasing onto master
- Clean commit history by preferring to rebase instead of merge (
git pullis configured to automatically rebase)
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"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, 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
| #!/bin/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
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
| var NOISE = NOISE || { }; | |
| NOISE.Simplex = (function() { | |
| var iOctaves = 1, | |
| fPersistence = 0.5, | |
| fResult, fFreq, fPers, | |
| aOctFreq, // frequency per octave | |
| aOctPers, // persistance per octave | |
| fPersMax; // 1 / max persistence |
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
| node_modules/ |
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
| /* | |
| Solar system objects | |
| Adapted from: http://en.wikipedia.org/wiki/List_of_Solar_System_objects_by_size | |
| Collected by: https://www.khanacademy.org/profile/patrick809/programs | |
| */ | |
| CREATE TABLE solar_system_objects( | |
| body TEXT | |
| , mean_radius NUMERIC /* km */ | |
| , mean_radius_rel NUMERIC /* relative to earth */ | |
| , volume NUMERIC /* 10^9 km^3 */ |
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
| /** | |
| * @fileoverview The base object to generate modules | |
| * @author hwclass | |
| */ | |
| /** | |
| * models/Module.js | |
| * This object is used to generate some instances | |
| * as modules to be attached into the MODULES array. | |
| */ |
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
| /** | |
| * @fileoverview The sample js file that are thought that publishes the coming data from an API endpoint | |
| * @author hwclass | |
| */ | |
| /** | |
| * ajax.js | |
| * This file contains a publish command for productsFetchedEvent | |
| */ | |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
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
| var MessageStore = (function MessageStore () { | |
| return { | |
| HOLDING_THE_WHELL : 'holding whell...', | |
| FIRING_THE_ENGINE : 'firing the engine...', | |
| FULLING_THE_TANK : 'fulling the tank...', | |
| HOLDING_THE_STICK : 'holding the stick' | |
| } | |
| })(); |
