Skip to content

Instantly share code, notes, and snippets.

View bceskavich's full-sized avatar

Billy Ceskavich bceskavich

View GitHub Profile
@bceskavich
bceskavich / README.md
Last active August 29, 2015 14:15
D3 Bar Chart

Here we have rendered a simple bar chart of hard-coded data regarding snow totals in Upstate New York for the 2014-2015 winter season. The graph includes two scaled axes and outputs the snow total when hovering over each bar. Built with D3.

@bceskavich
bceskavich / bars.R
Created February 15, 2015 21:25
R Bargraph Example
# NEXIS Seminar R Example
#
# Bar Chart
# Create the data frame
cities <- c('Buffalo', 'Syrause', 'Binghamton', 'Rochester', 'Albany')
snow <- c(75.5, 60.1, 58.7, 54.2, 52.3)
snowLevels <- data.frame(cities, snow)
print(snowLevels)
@bceskavich
bceskavich / README.md
Created February 15, 2015 21:33
D3 Choropleth

An interactive heatmap of drought conditions in the United States, reflecting data from November 2008. Rendered w/ D3.

@bceskavich
bceskavich / README.md
Created March 2, 2015 22:24
Syracuse InfoViz Meetup D3 Tutorial

An interactive bar chart of snow totals in the United States, using D3 and some JQuery magic. Used as a walkthrough tutorial at the first Syracuse InfoViz Meetup.

@bceskavich
bceskavich / webpack.development.js
Created October 6, 2015 02:24
config/webpack.development.js
var webpack = require('webpack');
var config = require('config');
var merge = require('webpack-config-merger');
var baseConfig = require('./webpack.base.js');
var patterns = require('css-patterns');
var path = require('path');
var WP_PORT = config.get('webpackServer.port');
module.exports = merge(baseConfig, {
@bceskavich
bceskavich / .eslintrc
Created October 6, 2015 02:32
.eslintrc
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
import config from 'config';
import express from 'express';
import proxy from 'proxy-middleware';
import request from 'request';
import url from 'url';
import webpack from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import WebpackDevConfig from './config/webpack.development';
const APP_PORT = config.get('server.port');
@bceskavich
bceskavich / default.js
Created October 6, 2015 02:59
config/default.js
var path = require('path');
module.exports = {
env: (process.env.NODE_ENV || 'development'),
webpackServer: {
port: (process.env.WEBPACK_PORT || 8888)
},
server: {
port: (process.env.PORT || 5000)
},
@bceskavich
bceskavich / production.js
Created October 6, 2015 03:00
config/production.js
var path = require(‘path’);
module.exports = {
env: (process.env.NODE_ENV || ‘development’),
server: {
port: (process.env.PORT || 5000)
},
webpack: {
output: {
path: path.join(__dirname, ‘../build/assets’),
@bceskavich
bceskavich / index.html
Created October 6, 2015 03:01
src/templates/index.html
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>React Flux Boilerplate</title>
{% if (o.htmlWebpackPlugin.options.env !== 'development') { %}