Skip to content

Instantly share code, notes, and snippets.

View dwi2's full-sized avatar

Tzu-Lin Huang dwi2

  • Fukuoka, Japan
  • 11:09 (UTC +09:00)
View GitHub Profile
@dwi2
dwi2 / umd-module.js
Last active August 28, 2015 06:34 — forked from mpizza/umd-module.js
UMD (amd, common.js, window)
;(function(define){define(function(require,exports,module){
//...
});})(typeof define=='function'&&define.amd?define
:(function(n,w){'use strict';return typeof module=='object'?function(c){
c(require,exports,module);}:function(c){var m={exports:{}};c(function(n){
return w[n];},m.exports,m);w[n]=m.exports;};})('module-name',this));
@dwi2
dwi2 / make_onsave.js
Last active August 29, 2015 14:26 — forked from begeeben/develop.js
A handly script to make and run Firefox OS Gaia. Watch for file changes and make on the fly.
// Usage: node make_onsave.js b2g tv browser
// node make_onsave.js nightly phone settings
// node make_onsave.js simulator tv tv-deck
// node make_onsave.js b2g tv
'use strict';
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
@dwi2
dwi2 / flame-kk-no-devpx-landscape.patch
Last active August 29, 2015 14:25 — forked from huchengtw-moz/flame-kk-no-devpx-landscape.patch
patch to remove device pixel ratio
diff --git a/b2g/chrome/content/shell.css b/b2g/chrome/content/shell.css
index 44cdafd..2504849 100644
--- a/b2g/chrome/content/shell.css
+++ b/b2g/chrome/content/shell.css
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
html {
- background: black;
+ background: transparent;