Skip to content

Instantly share code, notes, and snippets.

View Polyrhythm's full-sized avatar
🎯
Focusing

Polyrhythm

🎯
Focusing
View GitHub Profile
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) {
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);
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
var CLIENT_ID = 'nope';
class Matcher extends React.Component {
constructor(props: { imageCount: number }) {
super(props);
this.state = { images: [] };
this.fetchRandomImages(this.props.imageCount);
}
function Car(make, model) {
this.make = make;
this.model = model;
var miles = 0;
this.increasMiles = function() {
miles++;
};
}
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');
}
}
function() {
var val = input.value;
if (val) {
data.push(val);
input.value = '';
render();
}
}
function render() {
container.innerHTML = data.map(function(val) {
return '<li>' + val + '</li>';
}).join('');
}
ugh = null
onAdd = (tokenAry) ->
ugh.setProps tokens: tokenAry
component = TokenTextArea({ onAdd: onAdd, tokens: [] })
ugh = React.renderComponent component, $('#component')[0]
{
"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",