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
| [merge] | |
| tool = sublimerge | |
| [mergetool "sublimerge"] | |
| cmd = sublime -n --wait \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\" --command \"sublimerge_diff_views\" | |
| trustExitCode = false | |
| [diff] | |
| tool = sublimerge |
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
| _.mixin({ | |
| 'camelCaseKeys' : function(obj) { | |
| return _.object(_.map(_.pairs(obj), function(pair) { | |
| return [_.camelCase(pair[0]), pair[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
| const TextField = React.createClass({ | |
| displayName: 'TextField', | |
| renderLabelText() { | |
| if (!this.props.label) return null; | |
| return ( | |
| <span>{this.props.label}</span> | |
| ); |
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 | |
| ├── config | |
| │ └── routes.js | |
| ├── screens | |
| │ └── App | |
| │ ├── components | |
| │ ├── screens | |
| │ │ ├── Admin | |
| │ │ │ ├── components | |
| │ │ │ ├── screens |
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
| const notifications = [ | |
| { | |
| date: "Nov 10, 2015 8:00:00", | |
| message: "Tagged in a photo", | |
| }, | |
| { | |
| date: "Nov 10, 2015 9:00:00", | |
| message: "Mentioned in a post", | |
| }, | |
| ]; |
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
| const notifications = [ | |
| { | |
| date: "Nov 10, 2015 8:00:00", | |
| message: "Tagged in a photo", | |
| }, | |
| { | |
| date: "Nov 10, 2015 9:00:00", | |
| message: "Mentioned in a post", | |
| }, | |
| ]; |
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
| const notifications = [ | |
| { | |
| date: "Nov 10, 2015 8:00:00", | |
| message: "Tagged in a photo", | |
| }, | |
| { | |
| date: "Nov 10, 2015 9:00:00", | |
| message: "Mentioned in a post", | |
| }, | |
| ]; |
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
| function f(x) { | |
| return x * 10; | |
| } | |
| function g(x) { | |
| return x + 2; | |
| } | |
| f(g(2)); // 40 |
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
| function fullName(firstName, lastName) { | |
| return `${firstName} ${lastName}`; | |
| } | |
| function createEl(el) { | |
| return document.createElement(el); | |
| } | |
| function wrapContentWithEl(el, content) { | |
| return el.innerHTML = content; |
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
| const Container = React.createClass({ | |
| componentDidMount() { | |
| const success = (notifications) => { | |
| this.setState({ | |
| notifications: notifications, | |
| }); | |
| }; | |
| $.ajax({ | |
| url: '/notifications', |