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 arrayInt1 = [1,2,3,4,5]; | |
var arrayInt2 = arrayInt1.reverse(); | |
var arrayLength = arrayInt1.length; | |
var arrayToString = arrayInt1.toString(); | |
var arrayString1 = ["A","B","C","E","F"]; | |
var arrayString2 = arrayString1.reverse(); | |
var arrayDouble1 = [1.0,2.0,3.0,4.0,5.0]; | |
var arrayDouble2 = arrayDouble1.reverse(); |
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
//CHECK#1 | |
var x = []; | |
var reverse = x.reverse(); | |
assert.sameValue(x,reverse,"#1: x = " + x + " ; x.reverse() = " + reverse ); | |
//CHECK#2 | |
x = []; | |
x[0] = 1; | |
var reverse = x.reverse(); |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'run', | |
1 verbose cli 'debug' ] | |
2 info using npm@5.6.0 | |
3 info using node@v9.4.0 | |
4 verbose run-script [ 'predebug', 'debug', 'postdebug' ] | |
5 info lifecycle bridge-troll@1.0.0~predebug: bridge-troll@1.0.0 | |
6 info lifecycle bridge-troll@1.0.0~debug: bridge-troll@1.0.0 |
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
{ Error: ENOENT: no such file or directory, scandir 'C:\Users\mquan\AppData\Local\Temp\brave-test\1520270086833274' | |
at Object.fs.readdirSync (fs.js:904:18) | |
at rmDir (E:/OSD600 Lab 2/browser-laptop/test/lib/brave.js:34:20) | |
at Context.cleanup (E:/OSD600 Lab 2/browser-laptop/test/lib/brave.js:1192:26) | |
at ontimeout (timers.js:475:11) | |
at tryOnTimeout (timers.js:310:5) | |
at Timer.listOnTimeout (timers.js:270:5) | |
errno: -4058, | |
code: 'ENOENT', | |
syscall: 'scandir', |
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
"dog" | |
Chrome: Good | |
Brave: Good | |
Edge: Good | |
IE: Good | |
" dog " | |
Chrome: Good | |
Brave: Good | |
Edge: Good |
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
"dog" | |
" dog " | |
"dog cat" | |
" dog cat " | |
"https://www.google.ca/search?q=dog" | |
" https://www.google.ca/search?q=dog " | |
"https://www.google.ca/search?q=dog cat" | |
" https://www.google.ca/search?q=dog cat " |
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
-O0 | |
Real: 27m45.129s | |
User: 27m42.538s | |
Sys: 0m1.039s | |
-O1 | |
Real: 8m53.567 | |
User: 8m52.045s | |
Sys: 0m0.839s |
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
//if (case1Reg.test(str)) { | |
// return true | |
//} | |
//if (case2Reg.test(str) || !case3Reg.test(str) || | |
// (scheme === undefined && /\s/g.test(str))) { | |
// return true | |
//} |
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
*Aarchie with 180mb file | |
-Just with -O2: | |
real 2m51.523s | |
user 2m51.247s | |
Number of options tested: 1284 | |
Real best time: 2m50.799s (CMAKE_CXX_FLAGS_DEBUG:STRING= -O2 -ftree-loop-distribute-patterns -floop-interchange -ftree-slp-vectorize -fipa-cp-clone) | |
User best time: 2m50.367s (CMAKE_CXX_FLAGS_DEBUG:STRING= -O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fvect-cost-model -ftree-partial-pre) | |
************************************************************************************************************************** |
OlderNewer