Skip to content

Instantly share code, notes, and snippets.

View heracek's full-sized avatar

Tomáš Horáček heracek

View GitHub Profile

Heading

abc

  • a a a
@heracek
heracek / inlet.js
Created July 11, 2012 13:46
just another inlet to tributary
var svg = d3.select("svg");
var rectBar = function(svg, x, y, width, height, color) {
return svg
.append("svg:rect")
.attr("x", x + 0.5)
.attr("y", y + 0.5)
.attr("width", width)
.attr("height", height)
.style("fill", color)
.style("stroke", 'black')
@heracek
heracek / inlet.js
Created July 11, 2012 13:20
just another inlet to tributary
var svg = d3.select("svg")
var rectBar = function(svg, x, y, width, height, color) {
return svg
.append("svg:rect")
.attr("x", x + 0.5)
.attr("y", y + 0.5)
.attr("width", width)
.attr("height", height)
.style("fill", color)
@heracek
heracek / inlet.js
Created July 11, 2012 11:36
MeetingMeter bar
var svg = d3.select("svg")
var rectBar = function(svg, x, y, width, height, color) {
return svg
.append("svg:rect")
.attr("x", x + 0.5)
.attr("y", y + 0.5)
.attr("width", width)
.attr("height", height)
.style("fill", color)
@heracek
heracek / inlet.js
Created July 11, 2012 11:27
just another inlet to tributary
var svg = d3.select("svg")
var rectBar = function(svg, x, y, width, height, color) {
return svg.append("svg:rect")
.attr("x", x + 0.5)
.attr("y", y + 0.5)
.attr("width", width)
.attr("height", height)
.style("fill", color)
.style("stroke", 'black')
@heracek
heracek / inlet.js
Created July 11, 2012 11:27
just another inlet to tributary
var svg = d3.select("svg")
var rectBar = function(svg, x, y, width, height, color) {
return svg.append("svg:rect")
.attr("x", x + 0.5)
.attr("y", y + 0.5)
.attr("width", width)
.attr("height", height)
.style("fill", color)
.style("stroke", 'black')
@heracek
heracek / gauge.js
Created July 10, 2012 12:14 — forked from tomerd/gauge.js
google style gauges using javascript d3.js
function Gauge(placeholderName, configuration)
{
this.placeholderName = placeholderName;
var self = this; // some internal d3 functions do not "like" the "this" keyword, hence setting a local variable
this.configure = function(configuration)
{
this.config = configuration;
[core]
editor = "mvim -f -c 'au VimLeave * !open -a Terminal'"
[merge]
tool = vimdiff
guitool = mvim
[diff]
tool = vimdiff
guitool = mvim
[mergetool "mvim"]
cmd = mvim -f -d "$LOCAL" "$MERGED" "$REMOTE"