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
| node -e "var p = 'src/locators/selectors'; var kids = fs.readdirSync(p).map(x => fs.readFileSync(p + '/' + x, 'utf-8')).join('\n').split('\n').filter(x => x.match(/class .*{/)).map(x => x.replace('class ', '').replace(' {', '').replace(' extends ', ' ')).map(x => x.split(' ')).reduce((kids, p) => { kids[p[1]] = kids[p[1]] || []; kids[p[1]].push(p[0]); return kids; }, {}); function pr(indentation, k) { console.log(indentation + k); (kids[k] || []).forEach(x => pr(indentation + ' ', x)); }; pr('');" |
This file has been truncated, but you can view the full file.
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
| 2018-11-12T22:04:14.366Z [main] silly: Packagr.run(spec_compiled, spec_compiled, undefined) | |
| 2018-11-12T22:04:14.368Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/a.servicemix.ts | |
| 2018-11-12T22:04:14.368Z [main] silly: Executing: | |
| 2018-11-12T22:04:16.591Z [main] silly: Packagr.run(build, build, undefined) | |
| 2018-11-12T22:04:16.591Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/src/store/compute | |
| 2018-11-12T22:04:16.591Z [main] silly: Executing: | |
| 2018-11-12T22:04:20.684Z [main] silly: Packagr.run(build, build, undefined) | |
| 2018-11-12T22:04:20.684Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/src/support/errorSink | |
| 2018-11-12T22:04:20.684Z [main] silly: Executing: | |
| 2018-11-12T22:04:22.158Z [main] silly: Packagr.run(build, build, undefined) |
This file has been truncated, but you can view the full file.
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
| 2018-11-12T22:04:14.366Z [main] silly: Packagr.run(spec_compiled, spec_compiled, undefined) | |
| 2018-11-12T22:04:14.368Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/a.servicemix.ts | |
| 2018-11-12T22:04:14.368Z [main] silly: Executing: | |
| 2018-11-12T22:04:16.591Z [main] silly: Packagr.run(build, build, undefined) | |
| 2018-11-12T22:04:16.591Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/src/store/compute | |
| 2018-11-12T22:04:16.591Z [main] silly: Executing: | |
| 2018-11-12T22:04:20.684Z [main] silly: Packagr.run(build, build, undefined) | |
| 2018-11-12T22:04:20.684Z [main] info: Compiling /home/imaman/code/data-platform/metric-machine/backend/src/support/errorSink | |
| 2018-11-12T22:04:20.684Z [main] silly: Executing: | |
| 2018-11-12T22:04:22.158Z [main] silly: Packagr.run(build, build, undefined) |
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
| callbackWaitsForEmptyEventLoop;done;succeed;fail;logGroupName;logStreamName;functionName;memoryLimitInMB;functionVersion;getRemainingTimeInMillis;invokeid;awsRequestId;invokedFunctionArn" |
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
| npm install --save-dev mocha ts-node chai chai-subset @types/chai @types/mocha @types/chai-subset | |
| cp /dev/stdin src/u.test.ts <<EOF | |
| import * as chai from 'chai'; | |
| import chaiSubset = require('chai-subset'); | |
| chai.use(chaiSubset); | |
| const {expect} = chai; |
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
| const CDP = require('chrome-remote-interface'); | |
| const chromeLauncher = require('chrome-launcher'); | |
| // cdp.js: a playground for using chrome-devtools-protocol. | |
| // Plug-in your own code at the run() function, below. | |
| // | |
| // Usage: | |
| // $ node scripts/cdp.js | |
| // | |
| // This program requires node version >= 8. |
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
| const CDP = require('chrome-remote-interface'); | |
| const chromeLauncher = require('chrome-launcher'); | |
| const util = require('util'); | |
| // cdp.js: a playground for using chrome-devtools-protocol. | |
| // Plug-in your own code at the run() function, below. | |
| // | |
| // Usage: | |
| // $ node scripts/cdp.js | |
| // |
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
| Outdated stub in index: jar:///home/imaman/code/hackathon-sample/wix-framework/bazelbeam-intellij-projects/wixrpc_21/libs/bazelbeam_1.jar!/com/wixpress/greyhound/config/Configuration.class indexed at 1555508993369 with document size -1, doc=null, docSaved=true, wasIndexedAlready=true, queried at 1555508993369 | |
| indexed lengths={chars=-1, bytes=8138} | |
| doc length=-1 | |
| file length=0 | |
| cached PSI class org.jetbrains.plugins.scala.lang.psi.impl.ScalaFileImpl | |
| projects with file: 1 | |
| java.lang.Exception | |
| at com.intellij.psi.stubs.StubTreeLoaderImpl.diagnoseLengthMismatch(StubTreeLoaderImpl.java:180) | |
| at com.intellij.psi.stubs.StubTreeLoaderImpl.checkLengthMatch(StubTreeLoaderImpl.java:150) |
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
| So a common conception (perhaps I should say “misconception”) about Exceptions in Scala is that they should be avoided due to lack of referential transparency (see “do not throw exceptions” and “referential transparency”). I think this topic is a bit subtler that one might initially think. | |
| The argument goes as follows: “you should be able to inline/extract variables without changing the program’s behavior. But Exceptions are not like that.” | |
| The text-book example goes as follows: | |
| def f1(n: Int): Int = | |
| if (n == 0) throw new RuntimeException("zero") else n + 1 | |
| def f2(n: Int): Int = { | |
| val x = throw new RuntimeException("zero"); | |
| if (n == 0) x else n + 1 | |
| } | |
| The only difference between these two functions is that the throw expression was extracted into a variable. However, the two functions are not equivalent (f1(4) succeeds but f2(4) fails), hence … “exceptions should be avoided”. |
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
| _ "tiny insignifcant changes" | |
| _1 "dead code removal" | |
| _2 "followups of the previous commit, trying to make it work" |
OlderNewer