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
var people = [ | |
{name : "Zoe", age : 20}, | |
{name : "Alicia", age : 18}, | |
{name : "John", age : 22} | |
]; | |
people.sort(function (p1, p2) { | |
return p1.name.localeCompare(p2.name); | |
}); |
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
eg \toolkit\locales\en-US\chrome\global\devtools\styleinspector.properties |
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
"show dbs" | |
"show collections" | |
"db.dropDatabase()" |
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
List | |
- run "npm outdated" | |
Update | |
- replace versions in package.json by '*' | |
- run "npm update --save" |
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
Show current revision : hg id -i |
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
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 |
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
protected <I, O> List<O> mapToList(List<I> list, Function<I, O> method) { | |
return list.stream().map((I item) -> method.apply(item)).collect(Collectors.toList()); | |
} |
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
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 |
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
powercfg -lastwake |
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
# 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" |