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
| /** | |
| * | |
| * Implementation of the Binary Search Tree Class | |
| * | |
| * @file BSTree.cpp | |
| * @author Harry Hedger | |
| * @date October 7, 2012 | |
| * | |
| **/ |
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
| foo = [{ order: 1 }, { order: 2 }, { order: 3 }, { order: 4 }] | |
| # First Attempt | |
| nextPage = foo.select{ |f| f.order == current.order+1 } || foo.select{ |f| f.order == 1 } | |
| # Second Attempt | |
| nextPage = foo.select{ |f| f.order == current.order+1 || f.order == 1 } |
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
| for f in ../src/locales/*.js; do | |
| echo $f | |
| done |
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
| body { | |
| } | |
| header { | |
| } | |
| a { | |
| } | |
| .hello { |
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
| .panel-group .panel { | |
| display: inline-block; | |
| width: 18%; | |
| } |
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
| "scripts": { | |
| "watch": "npm run watch:js & npm run watch:css", | |
| "watch:js": "watchify js/lib/transloadit-js-client.js -do build/transloadit-js-client.js", | |
| "watch:css": "nodemon -e scss -x \"npm run build:css\"", | |
| "preview": "npm run watch & http-server ./build -d -o " | |
| } |
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
| return { | |
| ...state, | |
| key1: [...arr, action.payload.element] | |
| } |
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
| { | |
| key1: { | |
| arr: [] | |
| }, | |
| key2: { | |
| arr: [] | |
| } | |
| } |
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
| import Reflux from 'reflux'; | |
| /** | |
| * Define all async actions for blog store. | |
| * Using 'failure' because Reflux acts weird when using 'failed'. | |
| */ | |
| export default Reflux.createActions({ | |
| "addPost": { children: ["completed", "failure"] }, | |
| "deletePost": { children: ["completed", "failure"] }, |