Skip to content

Instantly share code, notes, and snippets.

@gitgrimbo
gitgrimbo / fiddle.css
Last active December 16, 2015 14:09 — forked from zalun/fiddle.css
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
@gitgrimbo
gitgrimbo / fiddle.response.html
Last active December 16, 2015 18:29
"message" event receiver that echos the data back to "event.source"
<html>
</html>
require.config({
paths: {
'jquery': '//code.jquery.com/jquery-1.9.1',
'angular': '//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min',
'bootstrap': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min',
'my-library': '//gist.github.com/gitgrimbo/5689953/raw/9b44d7e5f504b2245331be3ed3fcbb7bf8635da6/gistfile1'
},
shim: {
'bootstrap' : {deps:['jquery']},
'angular' : {exports:'angular'}
@gitgrimbo
gitgrimbo / gist:5690017
Last active December 17, 2015 23:29
main: simple AMD module
define(["angular", "my-library", "bootstrap"], function (angular, myLibrary, bootstrap) {
console.log(angular.version);
console.log(myLibrary);
console.log(undefined === bootstrap, "bootstrap augments jQuery and has no module return value");
console.log("1.9.1" === $.fn.jquery, "boostrap should have caused jQuery to load");
console.log("function" === typeof $.fn.alert.Constructor, "boostrap adds alert");
});
/*!
* imagesLoaded PACKAGED v3.0.4
* JavaScript is all like "You images are done yet or what?"
*/
/*!
* EventEmitter v4.2.0 - git.io/ee
* Oliver Caldwell
* MIT license
* @preserve
@gitgrimbo
gitgrimbo / fiddle.response.html
Created September 6, 2013 13:16
fiddle.response.html
This is the gist response html
@gitgrimbo
gitgrimbo / blue.css
Created September 8, 2013 18:24
simple css files
body {
background: blue;
}
@gitgrimbo
gitgrimbo / $Dojo.md
Last active December 25, 2015 08:48
Building https://github.com/csnover/dojo-boilerplatewith various settings / runtimes.

Dojo stuff.

@gitgrimbo
gitgrimbo / intern.md
Last active August 29, 2015 13:55
The Intern
@gitgrimbo
gitgrimbo / bookmarklets
Last active May 2, 2016 10:30
bookmarklets
GitHub wiki full width
javascript:(function(){
function $(id){return document.getElementById(id);}
var el=$("wiki-rightbar");
el.parentElement.removeChild(el);
$("wiki-body").style.marginRight="0";
}())