Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Woelk MattWoelk

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mattwoelk on github.
  • I am mattwoelk (https://keybase.io/mattwoelk) on keybase.
  • I have a public key ASCRcoQBY7WC0brdsKwhGGxhi1x6ioSP4VNI6gGTQ5DgTwo

To claim this, I am signing this object:

@MattWoelk
MattWoelk / hh_to_git.sh
Last active Aug 29, 2015 — forked from 5sw/hh_to_git.sh
Take a Handmade Hero .zip and make it a git repo, with one commit for each day.
View hh_to_git.sh
#!/bin/bash
# This script makes a HandmadeHero directory and populates it as a git repo with the supplied .zip file.
# Example: ./hh_to_git.sh handmade_hero_065_source.zip
args=("$@")
if [ ${#args[@]} -ne 1 ]
then
echo "Need one argument: the source zip file."
View keybase.md

Keybase proof

I hereby claim:

  • I am MattWoelk on github.
  • I am mattwoelk (https://keybase.io/mattwoelk) on keybase.
  • I have a public key whose fingerprint is 187D 25E5 98FD 62A1 C957 68CF 4075 2A65 F26A A54A

To claim this, I am signing this object:

@MattWoelk
MattWoelk / ember_ticks.md
Last active Aug 29, 2015
Ember.js Ticks
View ember_ticks.md

Design decisions made in ember.js which I do not understand:

Templates

{{variable}}

vs.

{{view 'thing' variable}}
@MattWoelk
MattWoelk / index.html
Last active Feb 6, 2018
d3.js Loading Spinner Icon
View index.html
<!DOCTYPE HTML>
<html lang="en">
<head>
</head>
<body>
<div id="loader_container"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
@MattWoelk
MattWoelk / index.html
Last active Dec 17, 2015
Morphogenesis Simulation
View index.html
<!DOCTYPE html><!--{{{-->
<html>
<head>
<title>Morphogenesis</title>
<meta charset="utf-8">
<script type="text/javascript" src="readme-d3_modded.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<link type="text/css" rel="stylesheet" href="readme-voronoi.css"/>
</head>
<body>
@MattWoelk
MattWoelk / README.md
Last active Sep 17, 2017
Binned Line Chart
View README.md

This is a Binned Line Chart version of Mike Bostock's zoomable area chart. You can find his source here. The graph shows number of flights per day in the United States.

  • Use the mouse-wheel to zoom in and out, and drag the slider to adjust the size of the bins.
  • View with the step-after interpolation method to see the discrete bins.

This is a small demo made part-way through Matt Woelk's Masters Thesis. A video demonstration of the full version is available.

@MattWoelk
MattWoelk / Fullscreen-Windowed YouTube
Last active Sep 25, 2015
"Fullscreen" youtube in a window with pentadactyl.
View Fullscreen-Windowed YouTube
"pentadactyl (or vimperator) line to add to pentadactylrc (or vimperatorrc) to watch youtube videos as fullscreened within a window. Uses the watch_popup ability of YouTube. Very handy.
"press yt to view a YouTube video as fullscreened within the window
map yt -js dactyl.open( String.replace(buffer.URL, /watch/, "watch_popup"))
@MattWoelk
MattWoelk / workman.vim
Created Mar 25, 2011
workman keyboard layout for vim
View workman.vim
"A blatant workman ripoff of bmx 007's beautiful colemak version called 'colqer' http://www.vim.org/scripts/script.php?script_id=2865 It makes vim so that you can insert and Ex mode in the workman keyboard layout, but can do the rest in qwerty.
"usage: put it in ~/.vim/plugin/ as workman.vim
"press \; in normal mode to activate/deactivate it.
"Keyboard is qwerty
" we want workman in insert mode
function IMapColemak()
if s:imap_colemak == 0
noremap! q q
noremap! w d