Skip to content

Instantly share code, notes, and snippets.

Rockin' the dad jeans

Tom Wayson tomwayson

Rockin' the dad jeans
View GitHub Profile
thollingshead / Dojo_Widget.sublime-snippet
Last active Feb 4, 2016
Sublime snippet for Dojo widget boilerplate.
View Dojo_Widget.sublime-snippet
], function(
) {
odoe / myservicespec.js
Created Dec 9, 2013
Sample of using Sinon to stub modules in Dojo AMD.
View myservicespec.js
], function(
Widget) {
return describe('widgets/search/searchservice', function() {
View geo_tumblr.html
<!-- This is a quick rundown of how I got geotagging working in Tumblr via javascript and some hacking. Its in use at - I hope tumblr builds it into their site soon! -->
<!-- This has to go somewhere at the top of your page, inside your <head>, as javascript -->
<!-- It prepares the regular expression that finds the geo: tags inside your various tags -->
var geore = new RegExp(/^geo:(-?\d+\.\d+);(-?\d+\.\d+)$/)
<!-- You must alter every <div> containing a post to look like this: -->
<div class="post text" id="post-{PostID}">
<!-- This is so that the javascript can find the posts it needs to. Its a hack around my unfamiliarity with jQuery really. -->