Skip to content

Instantly share code, notes, and snippets.

View ashleybot's full-sized avatar

Ashley Wilson ashleybot

  • University of Kentucky @UK-SBCoA
  • Lexington, KY, USA
View GitHub Profile
@ashleybot
ashleybot / package_release.yml
Created November 18, 2022 14:20
GitHub Action workflow for building and deploying .NET NuGet Packages to GitHub repo
# 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
@ashleybot
ashleybot / D3HTMLtable.js
Created February 21, 2012 05:22
Using D3.js to present XML as HTML Table
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");
@ashleybot
ashleybot / d3transistions1.js
Created February 17, 2012 05:01
D3.js Simple Transistions
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); } );
}
@ashleybot
ashleybot / d3basics1.js
Created February 16, 2012 05:51
D3.js Basic Vertical Bar Chart
// simple array
var data = [8, 12, 15, 30, 43];
@ashleybot
ashleybot / GoldenGateTrailRunParser.rb
Created February 16, 2012 04:03
Use Nokogiri and open-uri to parse Golden Gate Trail Run results from HTML to XML.
#
# 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.