Skip to content

Instantly share code, notes, and snippets.


Julian Descottes juliandescottes

View GitHub Profile
View gist:d04ceceb03fbbe0164a3
var people = [
{name : "Zoe", age : 20},
{name : "Alicia", age : 18},
{name : "John", age : 22}
people.sort(function (p1, p2) {
juliandescottes / gist:7f95e3056a035fe308c9
Created May 11, 2015
Mozilla locales are in /toolkit (even devtools ones)
View gist:7f95e3056a035fe308c9
eg \toolkit\locales\en-US\chrome\global\devtools\
View gist:8a9f338a4eb87beb41db
"show dbs"
"show collections"
View gist:98ca63cd76fcb3de877d
- run "npm outdated"
- replace versions in package.json by '*'
- run "npm update --save"
juliandescottes / gist:30973b88033784008f26
Last active Aug 29, 2015
hg log from current revision
View gist:30973b88033784008f26
hg log --rev "reverse(ancestors(.))"
y - record this change
n - skip this change
s - skip remaining changes to this file
f - record remaining changes to this file
d - done, skip remaining changes and files
a - record all changes to all remaining files
protected <I, O> List<O> mapToList(List<I> list, Function<I, O> method) {
return item) -> method.apply(item)).collect(Collectors.toList());
juliandescottes / gist:54a51d390bae2a4a8e6d
Last active Apr 18, 2016
Firefox try commit and push
View gist:54a51d390bae2a4a8e6d
hg commit --close-branch -m "try: -b do -p linux,macosx64,win32 -u mochitests[Ubuntu,10.10,Windows 7,-x64] -t none"
hg commit --close-branch -m "try: -b do -p linux,macosx64,win32 -u xpcshell,mochitests[Ubuntu,10.10,Windows 7,-x64] -t none"
hg commit --close-branch -m "try: -b do -p linux,linux64,macosx64,win32 -u xpcshell,mochitests"
// mochitests devtools only on linux ... because
hg commit --close-branch -m 'try: -b do -p linux -u mochitest-dt[Ubuntu] -t none'
hg commit --close-branch -m 'try: -b do -p linux,linux64 -u mochitest-e10s-devtools-chrome-6 -t none'
hg commit --close-branch -m 'try: -b d -p linux64 -u mochitest-devtools-chrome-1,mochitest-e10s-devtools-chrome-1 -t none --try-test-paths devtools-chrome:devtools/client/inspector/markup/test --failure-emails --rebuild 20'
hg push -f try
juliandescottes / .mozconfig
Created Jan 5, 2016
.mozconfig file for #devtools
View .mozconfig
# normal mozconfig
ac_add_options --with-ccache=/usr/local/bin/ccache
mk_add_options MOZ_OBJDIR=objdir.noindex
mk_add_options AUTOCLOBBER=1
CC="clang -fcolor-diagnostics"
CXX="clang++ -fcolor-diagnostics"