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
$ docker-compose up | |
Creating network "docker_default" with the default driver | |
Creating docker_wikidb_1 ... done | |
Creating docker_wikijs_1 ... done | |
Attaching to docker_wikidb_1, docker_wikijs_1 | |
wikidb_1 | 2018-06-22T04:28:15.063+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=468ee589b69d | |
wikidb_1 | 2018-06-22T04:28:15.063+0000 I CONTROL [initandlisten] db version v3.6.5 | |
wikidb_1 | 2018-06-22T04:28:15.063+0000 I CONTROL [initandlisten] git version: a20ecd3e3a174162052ff99913bc2ca9a839d618 | |
wikidb_1 | 2018-06-22T04:28:15.064+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
wikidb_1 | 2018-06-22T04:28:15.064+0000 I CONTROL [initandlisten] allocator: tcmalloc |
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
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |
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
Math.log10(n); | |
// Equivalent polyfill: | |
Math.log(n) * Math.LOG10E |
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
let iterations = 100000; | |
let startTime = new Date().getTime(); | |
for (let i = 0; i < iterations; i++) | |
Math.log10(0) | |
let endTime = new Date().getTime(); | |
let time = endTime - startTime; | |
console.info(`time: ${time}ms, op: ${time / iterations}ms`); |
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 runTest = (iterations = 100000000) => { | |
let startTime = new Date().getTime(); | |
for (let i = 0; i < iterations; i++) | |
Math.log10(0) | |
let endTime = new Date().getTime(); | |
let totalTime = endTime - startTime; | |
let fnTime = (totalTime / iterations).toFixed(10); | |
let operations = Math.floor(1000 / totalTime * iterations); |
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 runTest = (iterations = 100000000) => { | |
let startTime = new Date().getTime(); | |
for (let i = 0; i < iterations; i++) | |
Math.log10(0) | |
let endTime = new Date().getTime(); | |
let totalTime = endTime - startTime; | |
let fnTime = (totalTime / iterations).toFixed(10); | |
let operations = Math.floor(1000 / totalTime * iterations); |
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 runBaseline = (iterations = 100000000) => { | |
let startTime = new Date().getTime(); | |
for (let i = 0; i < iterations; i++) { | |
// no operation | |
} | |
let endTime = new Date().getTime(); | |
return endTime - startTime; | |
} | |
const runTest = (iterations = 100000000) => { |
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 t0 = performance.now(); | |
Math.log10(n) | |
const t1 = performance.now(); | |
console.log(`Call took ${t1 - t0} milliseconds.`); |
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 windows = new Set(); | |
export const createWindow = async () => { | |
if ( | |
process.env.NODE_ENV === 'development' || | |
process.env.DEBUG_PROD === 'true' | |
) { | |
await installExtensions(); | |
} |
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
<script> | |
import { onMount } from 'svelte'; | |
import { createScene } from "./scene"; | |
let el; | |
onMount(() => { | |
createScene(el) | |
}); | |
</script> |