Skip to content

Instantly share code, notes, and snippets.

Avatar
🇯🇵
Learning Japanese

Chia-Lung Chen EragonJ

🇯🇵
Learning Japanese
View GitHub Profile
View trip-setup-minimal-2-2.html
<link type="text/css" rel="stylesheet" href="dist/trip.nodep.min.css">
View bug-1016807.patch
diff --git a/apps/settings/test/unit/icc_test.js b/apps/settings/test/unit/icc_test.js
index a6bd1d8..fc0194c 100644
--- a/apps/settings/test/unit/icc_test.js
+++ b/apps/settings/test/unit/icc_test.js
@@ -62,13 +62,6 @@ suite('STK (App menu) >', function() {
mocksHelper = new MocksHelper(mocksForIccApp);
mocksHelper.suiteSetup();
- HtmlImports.populate(function() {
- window.addEventListener('iccPageLoaded', function onLoaded(event) {
View bug-1016807.diff
diff --git a/apps/settings/test/unit/panels/root/stk_item_test.js b/apps/settings/test/unit/panels/root/stk_item_test.js
index 4b31d2d..7ecd498 100644
--- a/apps/settings/test/unit/panels/root/stk_item_test.js
+++ b/apps/settings/test/unit/panels/root/stk_item_test.js
@@ -1,20 +1,10 @@
'use strict';
-/* globals MocksHelper, MockNavigatorSettings */
requireApp('settings/shared/test/unit/load_body_html_helper.js');
-require('/shared/test/unit/mocks_helper.js');
-
View gecko.diff
diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js
index 730acd0..c14bf22 100644
--- a/dom/wifi/WifiWorker.js
+++ b/dom/wifi/WifiWorker.js
@@ -3232,16 +3232,31 @@ WifiWorker.prototype = {
this.setWifiApEnabled(enabled, this.requestDone.bind(this));
}.bind(this));
- if (!enabled) {
- this.queueRequest({command: "setWifiEnabled", value: true}, function(data) {
View gaia.js
if (wifiManager) {
this._suspend('wifi');
// make sure ril.ignore.mutex is set before turning off wifi-tethering
var req = SettingsListener.getSettingsLock().set({
'ril.ignore.mutex': true
});
req.onsuccess = function() {
SettingsListener.getSettingsLock().set({
View gist:fd76234b8e8b9a2b3d6e
if (true) {
var s = document.querySelector('xxxx').setAttribute('xxxx',
'xxxxx');
}
View enable-certified-apps.sh
adb shell "stop b2g"
adb shell "cd /data/b2g/mozilla/*.default/ && echo 'user_pref(\"devtools.debugger.forbid-certified-apps\", false);' >> prefs.js"
adb shell "start b2g"
@EragonJ
EragonJ / readme.md
Last active Aug 21, 2019
Tips you need to know when contributing to Mozilla/Gaia
View readme.md

Why this list ?

There are many times we have contributors who want to contribute to Mozilla/Gaia, but we always would meet some new friends who are not so familiar with our working flows and Git.

In spite of keep telling them how to do that every time, I think it would be better to record screencasts about how to do that step by step. By following these instructions, you can easily jump into the ecosystem of Mozilla without too many obstacles.

Please fasten your seatbelt and let's start to hack :)

How to rebase and fix conflicts ?

@EragonJ
EragonJ / gist:fa23ef6d5c794d72ee01
Last active Aug 29, 2015
This is a language list written in its own language
@EragonJ
EragonJ / gist:11181371
Created Apr 22, 2014
example from mdn
View gist:11181371
function list() {
return Array.prototype.slice.call(arguments);
}
var list1 = list(1, 2, 3); // [1, 2, 3]
// Create a function with a preset leading argument
var leadingThirtysevenList = list.bind(undefined, 37);
var list2 = leadingThirtysevenList(); // [37]