Skip to content

Instantly share code, notes, and snippets.

View clayzermk1's full-sized avatar

Clay Walker clayzermk1

  • NVIDIA
  • San Francisco Bay Area, California, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am clayzermk1 on github.
  • I am jclaywalker (https://keybase.io/jclaywalker) on keybase.
  • I have a public key whose fingerprint is 2BDC 59AB 96C8 D52F 7C19 FEF2 A6D8 A8CE 098D F1E2

To claim this, I am signing this object:

@clayzermk1
clayzermk1 / README.md
Last active August 29, 2015 14:06
Tide Calendar

Tide Calendar

A tide calendar similar to the iconic Tidelines tide calendars built in D3. Data was obtained from NOAA.

If you've never experienced the awesome surfy-ness of a Tidelines calendar, I sincerely encourage you to purchase one. They have beautiful photos and wonderfully clean design. I am not affiliated with Tidelines but I did grow up with one of these calendars on the wall of my parents' house (they still buy one every year).

How to read the calendar (image copyright Tidelines)

CodePen Demo

var assert = require('assert');
/********************************
* We want make a package of goal kilos of chocolate. We have
* inventory of small bars (1 kilos each) and big bars (5 kilos each).
* Return the number of small bars to use, assuming we always
* use big bars before small bars. Return -1 if it can't be done.
*
* See the asserts below for examples of input
* and expected output.
@clayzermk1
clayzermk1 / README.md
Last active October 23, 2019 22:47
spacetime

A representation of the current time of year using the Sun, Earth, and Moon.

The position of the Earth in orbit around the Sun indicates the hour of year. The Earth itself is a pie chart indicating the second of day. The Moon's position in orbit around the Earth indicates the hour of month. The time is updated every second.

CodePen demo

Copyright 2014 Clay Walker
MIT License

@clayzermk1
clayzermk1 / README.md
Created December 15, 2012 00:50 — forked from mbostock/.block
Easy Custom Pie Labels In D3

Easilly create labels for any pie graph using simple trigonometric functions.

@clayzermk1
clayzermk1 / index.html
Created November 20, 2012 21:08 — forked from mbostock/.block
Mercator Projection
<!DOCTYPE html>
<meta charset="utf-8">
<title>Mercator Projection</title>
<style>
path {
fill: #ccc;
stroke: #fff;
}
@clayzermk1
clayzermk1 / README.md
Created August 10, 2012 19:54
jQuery / Twitter Bootstrap List Tree Plugin

jQuery / Twitter Bootstrap List Tree Plugin

Demo: http://jsfiddle.net/clayzermk1/QD8Hs/

Overview

I needed a simple plugin to build a two-tier collapsible list with checkboxes. I wanted it to fit well with Twitter's Bootstrap. I couldn't find one that was simple enough. I hope you enjoy =) Feel free to send feedback.