Skip to content

Instantly share code, notes, and snippets.

View ajacques-quatral's full-sized avatar

André Jacques ajacques-quatral

View GitHub Profile
@ramntry
ramntry / dbg.asm
Last active August 29, 2015 13:57
Debugger
model tiny
.code
.486
org 100h
_:
fm_aligned = (offset free_memory - _ + 100h + 15) / 16 * 16
load_address = fm_aligned + 100h
start: call get_fname
@jarontai
jarontai / gist:9106463
Created February 20, 2014 03:13
Close window
if (navigator.userAgent.indexOf("MSIE") > 0) {
if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
window.opener = null; window.close();
}
else {
window.open('', '_top'); window.top.close();
}
}
else if (navigator.userAgent.indexOf("Firefox") > 0) {
window.location.href = 'about:blank ';
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})