Skip to content

Instantly share code, notes, and snippets.

View vicapow's full-sized avatar

Victor vicapow

View GitHub Profile
@vicapow
vicapow / index.html
Created January 31, 2014 06:49
dang...
<!doctype HTML>
<html ng-app="dang">
<head>
<script src="js/d3.v3.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/dang.js"></script>
</head>
<body>
<d3-bar type="stacked" data="data">
<d3-axis orient="bottom" scale="xScale" ticks="10"></axis>
<!DOCTYPE html>
<html>
<body>
<script src="d3.js" charset="utf-8"></script>
<script>
// `data.csv`
// date,pass,fail,compid
// 01/2014,1,2,001
// 01/2014,11,5,002
// 02/2014,7,3,001
@vicapow
vicapow / index.html
Created February 18, 2014 22:03
understanding mouse events
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<style>
body, html{
width: 100%;
height: 100%;
margin: 0;
@vicapow
vicapow / index.html
Created February 22, 2014 18:33
tooltip positioning
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
body, html{
width: 100%;
height: 100%;
margin: 0;
background-color: green;
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script>
var years = ["2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2038", "2039", "2040"]
@vicapow
vicapow / index.html
Last active August 29, 2015 13:56 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="../../d3.js"></script>
<script src="../../topojson.js"></script>
<style>
body{
margin: 0;
}
</style>
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="../../d3.js"></script>
<script src="../../topojson.js"></script>
<style>
body{
margin: 0;
}
</style>
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<style>
body{
margin: 0;
}
</style>
@vicapow
vicapow / README.md
Last active August 29, 2015 13:57
Using D3 to load data from within Angular.
@vicapow
vicapow / transfig.rb
Last active August 29, 2015 13:57
transfig brew
require 'formula'
class Transfig < Formula
url 'http://downloads.sourceforge.net/mcj/transfig.3.2.5e.tar.gz'
version '3.2.5d'
homepage 'http://www.xfig.org'
sha1 '27aa9691bf84f8775db9be39c453a8132148bad1'
depends_on 'imake' => :build
depends_on 'jpeg'