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 React from 'react'; | |
| import PostComment from 'shared/components/PostComment'; | |
| import copy from 'shared/constants/copy'; | |
| import randomColor from 'shared/util/random_color'; | |
| import FluxComponent from 'flummox/component'; | |
| import Ad from 'shared/components/Ad'; | |
| export default class PostComments extends React.Component { | |
| shouldComponentUpdate(nextProps, nextState) { | |
| if (nextProps.comments === this.props.comments) { |
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 React from 'react'; | |
| import { Link } from 'react-router'; | |
| import copy from 'shared/constants/copy'; | |
| import PostComments from 'shared/components/PostComments'; | |
| import PostCommentControls from 'shared/components/PostCommentControls'; | |
| import FluxComponent from 'flummox/component'; | |
| export default class PostComment extends React.Component { | |
| constructor(props) { | |
| super(props); |
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
| unbind C-b | |
| set -g prefix C-w | |
| # pane switching | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # pane creation |
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 CLIENT_ID = 'nope'; | |
| class Matcher extends React.Component { | |
| constructor(props: { imageCount: number }) { | |
| super(props); | |
| this.state = { images: [] }; | |
| this.fetchRandomImages(this.props.imageCount); | |
| } |
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 Car(make, model) { | |
| this.make = make; | |
| this.model = model; | |
| var miles = 0; | |
| this.increasMiles = function() { | |
| miles++; | |
| }; | |
| } |
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 items = [{ sold: true}, {sold: false}, {sold: true}]; | |
| for (var i = 0; i < items.length; i++) { | |
| if (items[i].sold) { | |
| console.log('you done bought me'); | |
| } | |
| } |
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() { | |
| var val = input.value; | |
| if (val) { | |
| data.push(val); | |
| input.value = ''; | |
| render(); | |
| } | |
| } |
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 render() { | |
| container.innerHTML = data.map(function(val) { | |
| return '<li>' + val + '</li>'; | |
| }).join(''); | |
| } |
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
| ugh = null | |
| onAdd = (tokenAry) -> | |
| ugh.setProps tokens: tokenAry | |
| component = TokenTextArea({ onAdd: onAdd, tokens: [] }) | |
| ugh = React.renderComponent component, $('#component')[0] |
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
| { | |
| "id": "5ub4tb", | |
| "title": "Intro to doge", | |
| "isEditable": false, | |
| "shortDesc": "Instructional course on doge", | |
| "longDesc": "This is a course about doge", | |
| "authorBio": "Doges only.", | |
| "tags": [ | |
| "amaze", | |
| "wow", |