Skip to content

Instantly share code, notes, and snippets.

@gitgrimbo
gitgrimbo / $-Testing harviewer on Windows with Docker and Selenium
Last active July 5, 2016 23:48
Testing harviewer on Windows with Docker and Selenium
Testing harviewer on Windows with Docker and Selenium
@gitgrimbo
gitgrimbo / sts.md
Last active August 29, 2015 14:09
Fixing stupid Java user.home issue with Eclipse/STS/any other Java program

Assumes sts.bat is in the same folder as sts.exe. Also assumes that _JAVA_OPTIONS is recognised by the JRE that will be used (e.g. works for Oracle JDK 1.7.0_55, not sure about other versions/vendors).

setlocal
set _java_options=-Duser.home=%USERPROFILE%
%~dp0sts.exe
endlocal
@gitgrimbo
gitgrimbo / openssl
Created October 21, 2014 10:09
Base64
'Decrypt':
openssl enc -d -base64 -in amd-define-map.base64.txt -out amd-define-map.zip
@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";
}())
@gitgrimbo
gitgrimbo / intern.md
Last active August 29, 2015 13:55
The Intern
@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 / blue.css
Created September 8, 2013 18:24
simple css files
body {
background: blue;
}
@gitgrimbo
gitgrimbo / fiddle.response.html
Created September 6, 2013 13:16
fiddle.response.html
This is the gist response html
/*!
* 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 / 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");
});