This file contains 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
RUNTIME=/home/snowmantw/debugmulet/firefox/firefox TEST_FILES=/home/snowmantw/debugmulet/gaia/apps/system/test/marionette/lockscreen_media_playback_test.js make test-integration-test | |
TEST_MANIFEST=/home/snowmantw/debugmulet/gaia/shared/test/integration/local-manifest.json npm run marionette -- --buildapp="desktop" --reporter="spec" | |
> gaia@0.0.3 marionette /home/snowmantw/debugmulet/gaia | |
> gaia-marionette "--buildapp=desktop" "--reporter=spec" | |
+ export MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 | |
+ MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 | |
+ SOURCE=/home/snowmantw/debugmulet/gaia/node_modules/.bin/gaia-marionette | |
+++ dirname /home/snowmantw/debugmulet/gaia/node_modules/.bin/gaia-marionette |
This file contains 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'; | |
marionette('LockScreen media playback tests', function() { | |
var LockScreenMediaPlaybackActions, actions; | |
var LockScreenMediaPlaybackChecks, checks; | |
var FakeMusic = require('./lib/media_playback_fake_music.js'); | |
var fakeMusicInfo = new FakeMusic(); | |
var apps = {}; | |
apps[fakeMusicInfo.origin] = fakeMusicInfo.path; | |
var client = marionette.client({ | |
prefs: { |
This file contains 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
export PS1="\[\033[1;32m\]`hostname`\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\]:\[\033[1;33m\]\w\[\033[0m\]$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad |
This file contains 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
" set up pathogen, https://github.com/tpope/vim-pathogen | |
filetype on " without this vim emits a zero exit status, later, because of :ft off | |
filetype off | |
call pathogen#infect() | |
filetype plugin indent on | |
colorscheme advantage | |
" don't bother with vi compatibility | |
set nocompatible |
This file contains 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 k = new Promise((r) => {r()}); | |
var s = () => { return new Promise((r) => { setTimeout(()=> {console.log(1); r()}, 3000) })} | |
var g = () => { return new Promise((r) => { setTimeout(()=> {console.log(1); r()}, 3000) })} | |
k.then(s).then(g) // sequently | |
// parallel | |
k.then(s) | |
k.then(g) | |
// because it should be: |
This file contains 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
{ | |
"acknowledged_risks": true, | |
"skip_warning": true, | |
"settings": {}, | |
"carrier":{ | |
"phone_number": "", | |
"country": "", | |
"network": "" | |
}, | |
"imei": "", |
This file contains 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
gaiatest --restart --type=b2g --app=b2gdesktop --binary=/home/cltbld/b2g/b2g-bin --profile=/home/cltbld/gaia/profile --testvars=/home/cltbld/testvars.json /home/cltbld/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_unlock_to_emergency_call_screen.py |
This file contains 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
a = (D = {}, S = Init)=>(D = {d1}, S = Sa)=>(D = {d2}, S = Sb)=> doTransfer() | |
a() | |
a()() | |
a()()() | |
a()()()() ... doTransfer() | |
1: K = a() | |
if ('function' === typeof K) | |
goto 1 |
This file contains 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
t = (new Promise((s, f) => {console.log('>>',s); setTimeout(s, 6000)})) | |
.then(()=>{console.log('step #2');}) | |
// The Promise constructor would receive two resolver, and call it inside the wrappered asynchrous function to trigger the next steps. |
This file contains 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
{-# LANGUAGE UnicodeSyntax #-} | |
-- Pardon me. Crying for the missing lambda charater on the keybord. | |
-- Let's construct queries from SQL statements. | |
makeQueries strs = map λstr → prepare conn str | |
doQuery qrys = foldl (λresults query → results >> query) (return ()) qrys | |
-- Do query and get results. | |
let stmts = [ "INSERT INTO Articles ('Functional JavaScript')" | |
, "INSERT INTO Gecko VALUES ('30.a1')" |