Skip to content

Instantly share code, notes, and snippets.

View linuxenko's full-sized avatar

Svetlana Linuxenko linuxenko

View GitHub Profile
@linuxenko
linuxenko / Visualize Data with a Scatterplot Graph [freeCodeCamp [Data Visualization]] (Challenge).markdown
Created March 26, 2016 20:32
Visualize Data with a Scatterplot Graph [freeCodeCamp [Data Visualization]] (Challenge)
@linuxenko
linuxenko / Visualize Data with a Heat Map [freeCodeCamp [Data Visualization]] (Challenge).markdown
Created March 27, 2016 11:29
Visualize Data with a Heat Map [freeCodeCamp [Data Visualization]] (Challenge)
@linuxenko
linuxenko / Show Relationships with a Force Directed Graph [freeCodeCamp [Data Visualization]] (Challenge).markdown
Created March 27, 2016 17:04
Show Relationships with a Force Directed Graph [freeCodeCamp [Data Visualization]] (Challenge)
import { connect } from 'react-redux';
import { Component } from 'react';
class SandwichShop extends Component {
componentDidMount() {
this.props.dispatch(
makeASandwichWithSecretSauce(this.props.forPerson)
);
}
@linuxenko
linuxenko / server.js
Created April 2, 2016 06:52 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
var express = require('express');
var sys = require('sys');
var oauth = require('oauth');
var app = express.createServer();
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY";
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET";
function consumer() {
http://cpv2api.com/
import weatherApp from '../reducers/'
import { createStore, applyMiddleware } from 'redux'
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logger'
const loggerMiddleware = createLogger()
const createStoreWithMiddleware = applyMiddleware(
thunkMiddleware, // lets us dispatch() functions
loggerMiddleware // neat middleware that logs actions
function run (generator) {
var data = null, yielded = false
var iterator = generator(function () {
data = arguments
check()
})
yielded = !!(iterator.next())
check()
function check () {
while (data && yielded) {
const logger = createLogger();
const store = createStore(
combineReducers({
items,
filter
}),
window.devToolsExtension ? window.devToolsExtension() : f => f,
applyMiddleware(logger)
);
@linuxenko
linuxenko / .eslintrc.js
Created April 26, 2016 19:49 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {