Skip to content

Instantly share code, notes, and snippets.

View jrsconfitto's full-sized avatar

James Sconfitto jrsconfitto

View GitHub Profile
@jrsconfitto
jrsconfitto / index.html
Last active August 29, 2015 13:59
7 Wonders streamgraph
<!DOCTYPE html>
<meta charset="utf-8">
<title>7 Wonders Streamgraph</title>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
position: relative;
width: 960px;
}
@jrsconfitto
jrsconfitto / index.html
Last active August 29, 2015 13:58 — forked from mbostock/.block
7 Wonders scores stacked bar graph
<!DOCTYPE html>
<html>
<title>7 Wonders scores as stacked bars</title>
<style type="text/css">
svg {
width: 960px;
height: 500px;
border: solid 1px #ccc;
font: 10px sans-serif;
@jrsconfitto
jrsconfitto / README.md
Last active August 29, 2015 13:58 — forked from mbostock/.block
7 Wonder's score streamgraphs
@jrsconfitto
jrsconfitto / .gitignore
Last active August 29, 2015 13:58
7 Wonders base block
node_modules
@jrsconfitto
jrsconfitto / index.html
Last active August 29, 2015 13:57
7 Wonders blocks base
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="tabletop.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var gData
// https://docs.google.com/spreadsheets/d/1Whyq_IPIWrm7L6qTeu4IuSQ2RWnwtfwWiVwhA-jGEtQ/pubhtml
var key = 'https://docs.google.com/spreadsheet/pub?key=0AmhWglGO45rldFBiek84a1FHRmhPQjZaVzRSRGJZbXc&output=html'
@jrsconfitto
jrsconfitto / README.md
Last active December 30, 2015 02:29 — forked from mbostock/.block
@jrsconfitto
jrsconfitto / goserve.go
Created September 24, 2013 17:12
Simple static file server in Go
package main
import (
"flag"
"fmt"
"net/http"
"os"
"strings"
"strconv"
)
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel='stylesheet' type='text/css' href='' />
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'>
</head>
<body>
<script src=''></script>
@jrsconfitto
jrsconfitto / Build script
Last active December 18, 2015 12:19
My Nancy root path hacks for debugging views quickly when self-hosting
echo "$(ProjectDir)Web" > "$(OutDir)Debug-Path.txt"
@jrsconfitto
jrsconfitto / powershell tips.md
Last active December 13, 2015 21:28
Useful Powershell commands that i can never remember!

PowerShell tips

Because i can never remember stuff and then i end up walking down the same old road until i get to that stackoverflow answer i've already starred.

Environment variables

List them: Get-ChildItem Env: - Creating and modifying environment variables

Get your path in Powershell: $env:path
Make that path readable: $env:path.split(‘;’)