Skip to content

Instantly share code, notes, and snippets.

View jrburke's full-sized avatar

James Burke jrburke

View GitHub Profile
@jrburke
jrburke / gist:3056350
Created July 5, 2012 20:55
loading built test stuff
if (someConditionIsTrueFromQueryString) {
require(['testmain'], function () {
require(['test'], function (test) {
});
});
} else {
require(['test'], function (test) {
@jrburke
jrburke / gist:3056571
Created July 5, 2012 21:24
Wiring for jquery adapter
requirejs.config({
map: {
'*': {
'jquery': 'jquery-adapter'
},
'jquery-adapter': {
'jquery': 'jquery'
}
});
@jrburke
jrburke / volofile
Created November 15, 2012 18:56
volofile doing git submodule work on volo create
module.exports = {
onCreate: {
run: [
'git submodule init',
'git submodule update'
]
}
};
@jrburke
jrburke / gist:4949790
Last active December 13, 2015 17:39
Gaia email layer split
/*
Generated with a build that does:
main:
include: ["almond", "event-queue", "mailapi/same-frame-setup"]
account:
exclude: ['event-queue', 'mailapi/same-frame-setup']
include: ['mailapi/activesync/account']
@jrburke
jrburke / gist:5215284
Created March 21, 2013 18:11
gelam test run
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make clean
rm -rf data/deps
rm -rf node-transformed-deps
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make all-tests
mkdir -p node-transformed-deps
rsync -avL node-deps/addressparser node-transformed-deps
building file list ... done
addressparser/
addressparser/.git
addressparser/.gitignore
diff --git a/apps/email/js/ext/mailapi/activesync/configurator.js b/apps/email/js/ext/mailapi/activesync/configurator.js
index 38d7a5a..69fe6cb 100644
--- a/apps/email/js/ext/mailapi/activesync/configurator.js
+++ b/apps/email/js/ext/mailapi/activesync/configurator.js
@@ -2931,8 +2931,12 @@ ActiveSyncAccount.prototype = {
});
}
else { // ActiveSync 12.x and lower
+ var encoder = new TextEncoder('UTF-8');
+
@jrburke
jrburke / dmseg.txt
Created August 22, 2013 19:25
hamachi wifi issue
<6>[ 0.000000] Booting Linux on physical CPU 0
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.0.21-perf-ga969f85-00004-gda485a1 (android-bld@aclgcl-ubnt72) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Thu Jun 27 22:09:07 CST 2013
<4>[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
<4>[ 0.000000] Machine: QCT MSM7x27a FFA
<6>[ 0.000000] Partition (from atag) boot -- Offset:28f Size:30
<6>[ 0.000000] Partition (from atag) system -- Offset:2bf Size:640
<6>[ 0.000000] Partition (from atag) cache -- Offset:8ff Size:140
<6>[ 0.000000] Partition (from atag) misc -- Offset:a3f Size:20
@jrburke
jrburke / gist:6374043
Created August 29, 2013 03:46
sending message to worker
worker.postMessage({
type: 'cronsync',
uid: undefined,
cmd: 'alarm',
args: ['accountidhere', intervaltime]
});
//example call
worker.postMessage({
@jrburke
jrburke / clock.patch
Created October 4, 2013 05:22
Clock patch
diff --git a/apps/clock/Makefile b/apps/clock/Makefile
index e17f42e..78e8465 100644
--- a/apps/clock/Makefile
+++ b/apps/clock/Makefile
@@ -1,9 +1,16 @@
-# We can't figure out XULRUNNERSDK on our own; it's complex and some builders
-# may want to override our find logic (ex: TBPL), so let's just leave it up to
-# the root Makefile. If you know what you're doing, you can manually define
-# XULRUNNERSDK and XPCSHELLSDK on the command line.
-ifndef XPCSHELLSDK
@jrburke
jrburke / apiexamples.js
Created April 7, 2011 05:50
Description of browser-friendly module APIs: AMD and Loader Plugins
//*******************************************
// Level 1, basic API, minimum support
//*******************************************
/*
Modules IDs are strings that follow CommonJS
module names.
*/
//To load code at the top level JS file,
//or inside a module to dynamically fetch