Skip to content

Instantly share code, notes, and snippets.

@colin-young
colin-young / demo.css
Last active December 14, 2015 23:28
Demonstration of d3.js force directed layout with fixed x-values.
@font-face {
font-family:'Oxygen';
font-style: normal;
font-weight: 400;
src: local('Oxygen'), local('Oxygen-Regular'), url(http://themes.googleusercontent.com/static/fonts/oxygen/v2/RzoNiRR1p2Mqyyz2RwqSMw.woff) format('woff');
}
@font-face {
font-family:'Oxygen';
font-style: normal;
font-weight: 700;
@colin-young
colin-young / answers.js
Last active December 15, 2015 11:39
Answers Demo
$(function(){
$('#content-card .flip-card').click(function () {
$('#content-card').toggleClass('rotated');
});
});
@colin-young
colin-young / README.md
Last active June 6, 2016 20:16 — forked from mbostock/.block
Stock/Options Portfolio Dashboard Demo

Stock/options portfolio demo.

Designed by Stephen Few, a bullet chart “provides a rich display of data in a small space.” A variation on a bar chart, bullet charts compare a given quantitative measure (such as profit or revenue) against qualitative ranges (e.g., poor, satisfactory, good) and related markers (e.g., the same measure a year ago). Layout inspired by Stephen Few. Implementation based on work by Clint Ivy, Jamie Love of N-Squared Software and Jason Davies. The "update" button randomizes the values slightly to demonstrate transitions.

@colin-young
colin-young / index.html
Last active June 6, 2016 20:18 — forked from d3noob/.block
Sankey Diagram for BRK/B BCS Strategy
<!DOCTYPE html>
<meta charset="utf-8">
<title>BCS Strategy BRK/B</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@colin-young
colin-young / Automapper.Tests.cs
Last active July 17, 2018 11:43
Automapper Dictionary Mapping Problem
using AutoMapper;
using FluentAssertions;
using System.Collections.Generic;
using Xunit;
namespace Reporter.Tests
{
public class TestType
{
public string Prop1 { get; set; }
@colin-young
colin-young / EasyRoads3DModifier.cs
Last active December 29, 2018 03:03
Mapbox/Unity/EasyRoads3D Integration Problem
using System;
using System.Collections.Generic;
using System.Linq;
using EasyRoads3Dv3;
using Mapbox.Unity;
using Mapbox.Unity.MeshGeneration.Data;
using Mapbox.Unity.MeshGeneration.Modifiers;
using Mapbox.Unity.Utilities;
using UnityEngine;