Skip to content

Instantly share code, notes, and snippets.

View cacheflow's full-sized avatar
🎯
Focusing

Lex cacheflow

🎯
Focusing
View GitHub Profile
var fetch = require('node-fetch');
var url = "running before everything else";
fetch('https://api.github.com/users/jmsevold')
.then(function(res) {
return res.json();
}).then(function(result) {
import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
import 'todomvc-app-css/index.css'
const store = configureStore()
import Dispatcher from '../dispatchers/dispatcher';
import AppConstants from '../constants/appConstants';
import { EventEmitter } from 'events';
import { findIndex } from 'lodash';
var names = [{firstName: "jonathan", lastName: "sevold"}];
function addNameToStore(name) {
names.push(name);
import React from 'react';
export default class List extends React.Component {
render() {
let names = this.props.names.map((person, index) => {
return (
<div id="person" key={person + index}>
<div>Hello {person.firstName}</div>
<div>{person.lastName}</div>
</div>
import React from 'react';
import ReactDOM from 'react-dom';
export default class Form extends React.Component{
constructor(){
super();
this.state = {
names: []
}
import {Link} from 'react-router';
import React, {Component} from 'react';
import {Tabs, Tab, Styles} from 'material-ui';
const ThemeManager = Styles.ThemeManager;
const DefaultRawTheme = Styles.LightRawTheme;
const Colors = Styles.Colors;
const ThemeDecorator = Styles.ThemeDecorator;
let injectTapEventPlugin = require('react-tap-event-plugin');
import React, { Component, PropTypes } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Header from '../components/Header'
import MainSection from '../components/MainSection'
import * as TodoActions from '../actions/todos'
class App extends Component {
render() {
const { todos, actions } = this.props
function compose(firstFunction, secondFunction) {
return function(valueFromPassedInFunctions) {
return firstFunction(secondFunction(valueFromPassedInFunctions))
}
}
function secondFunction(value) {
return value.toLowerCase()
}
import button from '../../css/styles/Button.css'
export default class FirstAnswers extends React.Component {
render() {
return (
<button
className={button.answerButton}> woo {this.props.answer}</button>
)
}
}
import {formatLyric} from '../utils/format.js';
const AppStoreSetter = {
selected: "",
tweetText: "",
templateText: "",
clicked: false,
setTweetText(lyric) {
let templateTextLyric = lyric;