This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a workflow that is triggered either by a semver tag on a commit or by running manually | |
# Your own information will need to be updated in the following example, re: [Your repo] and [Your project] | |
# | |
# If you are restoring/reading packages from other repos within your GitHub account, | |
# don't forget to update the scope of the default GITUB_TOKEN or this workflow will fail on restore: | |
# * Go to your packages view and click on the required package | |
# * If you are working in an organization context, on the right-side menu, click on "Package settings" and give permissions to your consuming repo to read. | |
# * For personal accounts, the menu is one the left-hand side. | |
name: Package release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3.xml("/data/GoldenGate2012Results.xml", function(xml) { | |
var runners = d3.select(xml).selectAll("runner")[0]; | |
var table = d3.select("#presentation").append("table").attr("class","grid"); | |
var thead = table.append("thead"); | |
thead.append("th").text("Gender"); | |
thead.append("th").text("City"); | |
thead.append("th").text("Time"); | |
thead.append("th").text("Pace"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function redraw() { | |
chart.selectAll("rect") | |
.data(data) | |
.transition() | |
.duration(1000) | |
.attr("y", function(d) { return h - y(d) - .5; }) | |
.attr("height", function(d) { return y(d); } ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple array | |
var data = [8, 12, 15, 30, 43]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Use Nokogiri and open-uri to parse Golden Gate Trail Run results from HTML to XML. | |
# 2012.02.13 | |
# | |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
# Race results for the Golden Gate Trail Run in San Francisco, California on Saturday, February 11, 2012. |