This file contains hidden or 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
// Apache License: https://www.apache.org/licenses/LICENSE-2.0 | |
// For LESS version > 3.0.0, please turn on a flag to enable inline JavaScript: | |
// http://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated- | |
.uniform-transition(...) { | |
transition: ~`(function(lessArgsStr){ | |
var lessArgs = lessArgsStr.substr(1, lessArgsStr.length - 2).split(','); // Or use regexp | |
return lessArgs | |
.splice(1) |
This file contains hidden or 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
// Apache License: https://www.apache.org/licenses/LICENSE-2.0 | |
;(function (exports){ | |
// class -> class private methods name Set() | |
let classPrivateMethodsMap = new WeakMap(); | |
// classPrivateMethods -> WeakMap (instance -> members) | |
let privateMemberMap = new WeakMap(); |
This file contains hidden or 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
// Apache License: https://www.apache.org/licenses/LICENSE-2.0 | |
;(function (exports){ | |
// classPrivateMethods -> WeakMap (instance -> members) | |
let privateMemberMap = new WeakMap(); | |
function createInternalFunction(classPrivateMethods) { | |
if (!privateMemberMap.has(classPrivateMethods)) { | |
privateMemberMap.set(classPrivateMethods, new WeakMap()); |
This file contains hidden or 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
# python 2.7.6 | |
import threading | |
import sys | |
import traceback | |
import random | |
# too lazy to properly turn off output buffering | |
def msg(msg): | |
sys.stderr.write(msg) |
This file contains hidden or 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
# Just for fun. | |
from __future__ import print_function | |
class console(): | |
@staticmethod | |
def log(*args): | |
print(*args) |
This file contains hidden or 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
'use strict'; | |
// put this Node JS file in ./gaia/apps/keyboard/ and run. | |
// this script iterates through and parses layout js files and lists if | |
// we support a specific keyboard layout, which IMEngine that layout uses, | |
// and if dictionary is available (by this auto correction and prediction works) | |
let fs = require('fs'); |
This file contains hidden or 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
diff --git a/build/config/phone/apps-engineering.list b/build/config/phone/apps-engineering.list | |
index ef3ac1e..0cf313f 100644 | |
--- a/build/config/phone/apps-engineering.list | |
+++ b/build/config/phone/apps-engineering.list | |
@@ -16,6 +16,7 @@ dev_apps/test-agent | |
dev_apps/test-container | |
dev_apps/test-iac-publisher | |
dev_apps/test-iac-subscriber | |
+dev_apps/test-keyboard-app | |
dev_apps/test-otasp |
This file contains hidden or 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
adb pull /system/b2g/omni.ja | |
rm -rf omni.old | |
mv omni omni.old | |
mkdir omni | |
mv omni.ja omni | |
cd omni | |
unzip omni.ja | |
rm omni.ja | |
cd .. |