Skip to content

Instantly share code, notes, and snippets.

@dbowring
dbowring / keybase.md
Created June 5, 2017 03:45
Keybase proof

Keybase proof

I hereby claim:

  • I am dbowring on github.
  • I am danielb (https://keybase.io/danielb) on keybase.
  • I have a public key whose fingerprint is 07AC DBEE C2BE 6945 1729 37B4 6AF8 0434 D299 6EC4

To claim this, I am signing this object:

@dbowring
dbowring / bookmarklet
Created May 4, 2015 13:02
Jisho.org Kanji details page Stroke Order downloader
javascript:(function(){function%20r(d){return%20d&&0==d.lastIndexOf("http",0)&&-1==d.lastIndexOf(window.location.host)}function%20n(d,f){var%20c=d.querySelectorAll("image"),h=c.length;0==h&&f();for(var%20b=0;b<c.length;b++)(function(b){var%20a=b.getAttribute("xlink:href");if(a&&r(a.value))console.warn("Cannot%20render%20embedded%20images%20linking%20to%20external%20hosts:%20"+a.value);else{var%20e=document.createElement("canvas"),d=e.getContext("2d"),c=new%20Image,a=a||b.getAttribute("href");c.src=a;c.onload=function(){e.width=c.width;e.height=%20c.height;d.drawImage(c,0,0);b.setAttribute("xlink:href",e.toDataURL("image/png"));h--;0==h&&f()};c.onerror=function(){console.log("Could%20not%20load%20"+a);h--;0==h&&f()}}})(c[b])}var%20t=function(d,f,c){f=f||{};f.scale=f.scale||1;n(d,function(){var%20h=document.createElement("div"),b=d.cloneNode(!0),g,a;if("svg"==d.tagName)a=d.getBoundingClientRect(),g=a.width,a=a.height;else{a=d.getBBox();g=a.x+a.width;a=a.y+a.height;b.setAttribute("transform",b.getAttribute("tran
@dbowring
dbowring / hangman
Last active December 22, 2015 04:49
'''
Sample Output:
Solution: Python is Cool
______ __ ____
Next Guess: p
p_____ __ ____
Next Guess: o
p___o_ __ _oo_
Next Guess: t
p_t_o_ __ _oo_