This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From dcf55bbbbbeeaec79f0173a20a269f25503b9344 Mon Sep 17 00:00:00 2001 | |
From: Yuren Ju <yurenju@gmail.com> | |
Date: Mon, 10 Feb 2014 15:32:42 +0800 | |
Subject: [PATCH] example | |
--- | |
apps/browser/index.html | 1 + | |
shared/js/nfc_util.js | 1 + | |
2 files changed, 2 insertions(+) | |
create mode 100644 shared/js/nfc_util.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"external": false, | |
"zip": { | |
"mmap_files": [ | |
"YOUR_FILES", | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isNode, requirejs, config; | |
var requirejsAsLib = true; | |
try { | |
version(); | |
isNode = false; | |
console = { log: function(text) { dump(text + '\n'); } }; | |
} catch (e) { | |
isNode = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NODE_MODEULS_SRC?=modules.tar | |
ifdef NODE_MODULES_GIT_URL | |
NODE_MODULES_SRC := git-gaia-node-modules | |
endif | |
$(NODE_MODEULS_SRC): | |
ifeq "$(NODE_MODEULS_SRC)" "modules.tar" | |
$(DOWNLOAD_CMD) https://github.com/mozilla-b2g/gaia-node-modules/tarball/master | |
mv master "$(NODE_MODEULS_SRC)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = document.querySelectorAll('.index tr'); | |
var output = []; | |
[...list].forEach(function(item) { | |
var arr = []; | |
arr.push(item.children[1].textContent.trim().replace(/[\s\n\t]+/g,' ', 'g').replace(',', '', 'g')); | |
var spans = item.children[2].querySelectorAll('span'); | |
var roastList = []; | |
[...spans].forEach(function(sp) { | |
if (sp.textContent.trim()) { | |
roastList.push(sp.textContent.trim()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d67fcd942049559436a7286e9243694146243dc is the first bad commit | |
commit 3d67fcd942049559436a7286e9243694146243dc | |
Author: Carsten Book -Tomcat- <cbook@mozilla.com> | |
Date: Thu Mar 27 11:03:47 2014 +0100 | |
Revert "Bug 971512 - [System] Instantiable layout manager" for gaia unit test failure | |
This reverts commit 8d89fc1c523e46e7ff6ec45687605c7b60f91a34. | |
:100644 100644 2fb3684ca812df36914d412c37d1f2d44c893780 cf4e047e150199eaa4a9cb314db915b7b4dd5a94 M Gruntfile.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "丁守中", | |
"constituency": "TPE,1" | |
}, | |
{ | |
"name": "翁重鈞", | |
"constituency": "CYQ,1" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
p = subprocess.Popen(['make'], shell=False, stdout=subprocess.PIPE, | |
cwd='/home/yurenju/src/gaia', stderr=subprocess.STDOUT, | |
env={'DESKTOP': '0', 'DESKTOP_SHIMS': '1', 'DEBUG': '1', 'NOFTU': '1'}) | |
loop = True | |
while loop: | |
if p.poll() is not None: | |
loop = False | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf "$1/*" | |
mkdir -p $1/new $1/old | |
current=`git log -1 --pretty=format:"%h"` | |
prev=`git log -2 --pretty=format:"%h" | sed -n 2p` | |
git checkout "$prev" | |
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Cc = Components.classes; | |
const Ci = Components.interfaces; | |
const Cu = Components.utils; | |
const loaderURI = 'resource://gre/modules/commonjs/toolkit/loader.js'; | |
Cu.import("resource://gre/modules/FileUtils.jsm"); | |
Cu.import('resource://gre/modules/Services.jsm'); | |
let { Loader } = Cu.import(loaderURI, {}); | |
let cwd = Services.dirsvc.get("CurProcD", Ci.nsIFile); | |
let paths = { | |
'toolkit/': 'resource://gre/modules/commonjs/toolkit/', |
OlderNewer