Skip to content

Instantly share code, notes, and snippets.

View MaxGfeller's full-sized avatar
🧙

Max Gfeller MaxGfeller

🧙
View GitHub Profile
### Keybase proof
I hereby claim:
* I am MaxGfeller on github.
* I am mgfeller (https://keybase.io/mgfeller) on keybase.
* I have a public key whose fingerprint is 96DB E2AC 5D99 821A 7FB1 8825 356C EED8 1CE9 104B
To claim this, I am signing this object:
@MaxGfeller
MaxGfeller / node-webkit globals polyfill
Created April 8, 2014 20:26
Make globals like document, window etc. available in a node-webkit application
<script type="text/javascript">
global.window = window;
global.document = window.document;
global.location = location;
global.history = history;
</script>
@MaxGfeller
MaxGfeller / gist:9935931
Created April 2, 2014 15:00
most convenient domready
var co = require('co');
var thunkify = require('thunkify');
var domready = require('domready');
co(function*() {
yield thunkify(domready);
// dom is ready
})();