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
G1 + G2 - b'\x11\xff\x08\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G3 - b'\x11\xff\x08\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G4 - b'\x11\xff\x08\x00\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G5 - b'\x11\xff\x08\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G6 - b'\x11\xff\x08\x00!\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G7 - b'\x11\xff\x08\x00A\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G8 - b'\x11\xff\x08\x00\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G1 + G9 - b'\x11\xff\x08\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
G2 + G3 - b'\x11\xff\x08\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
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
import {Foo} from './foo.ts'; | |
export class Bar extends Foo {} |
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 _ = require('lodash'); | |
function bm() { | |
var u = 0, v = 0; | |
while(u === 0) u = Math.random(); //Converting [0,1) to (0,1) | |
while(v === 0) v = Math.random(); | |
return Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v ); | |
} | |
console.log( |
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
class FooArray extends Array { | |
constructor(...args) { | |
super(...args); | |
return new Proxy(this, { | |
defineProperty(target, property, descriptor) { | |
console.log({target, property, descriptor}); | |
return Reflect.defineProperty(target, property, descriptor); | |
} | |
}) | |
} |
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
/sbin/ldconfig.real: Can't stat /usr/local/cuda-8.0/targets/x86_64-linux/lib: No such file or directory | |
/sbin/ldconfig.real: Can't stat /usr/local/cuda-9.0/targets/x86_64-linux/lib: No such file or directory | |
/sbin/ldconfig.real: Can't stat /usr/local/cuda-9.2/targets/x86_64-linux/lib: No such file or directory | |
/sbin/ldconfig.real: Path `/usr/lib/nvidia-410' given more than once | |
/sbin/ldconfig.real: Path `/usr/lib32/nvidia-410' given more than once | |
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once | |
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once | |
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.23.so is the dynamic linker, ignoring | |
/sbin/ldconfig.real: /lib32/ld-2.23.so is the dynamic linker, ignoring |
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
# ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 | |
ALL_COMPONENTS=' | |
aac_adtstoasc_bsf | |
av1_metadata_bsf | |
chomp_bsf | |
dump_extradata_bsf | |
dca_core_bsf | |
eac3_core_bsf | |
extract_extradata_bsf |
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
liczbaOsob = [0.7, 2.6, 1].map(e => e/100).reduce((a,b) => a*b)*38*1000*1000; | |
liczbaProb = 100; | |
Array.from({length: liczbaProb}, () => Object.entries(Array.from({length: liczbaOsob}) | |
.map(e => Math.random()*70*365) | |
.map(Math.floor) | |
.reduce((obj, k) => (obj[k] = (obj[k]|0)+1, obj), {})) | |
.filter(([,v]) => v > 1).length) | |
.reduce((a,b)=>a+b)/liczbaProb |
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
Array.prototype.replace = function replace(map) { | |
const newArray = []; | |
for(const [index, value] of this.entries()) { | |
if(map.has(value)) { | |
newArray[index] = map.get(value); | |
} else { | |
newArray[index] = value; | |
} | |
} | |
return newArray; |
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-04-20T13:39:57.319+0200 checking for collection data in mongo/articles/Articles.bson | |
2018-04-20T13:39:57.322+0200 reading metadata for playback.articles from mongo/articles/Articles.metadata.json | |
2018-04-20T13:39:57.323+0200 restoring playback.articles from mongo/articles/Articles.bson | |
2018-04-20T13:39:57.521+0200 error: multiple errors in bulk operation: | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "3mmdamat0ax31uhucm3fvfpma" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "1y1m34t3y1mn1exlsppuott8e" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "b6l30ie0q6bf1abfw752e5oqq" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "14h8rspi3mwpv1witkl2ax0nq7" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "29eqq4mfloto19owib6mrp9ex" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key |
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-04-20T13:39:08.362+0200 checking for collection data in mongo/articles/Articles.bson | |
2018-04-20T13:39:08.365+0200 reading metadata for playback.articles from mongo/articles/Articles.metadata.json | |
2018-04-20T13:39:08.366+0200 restoring playback.articles from mongo/articles/Articles.bson | |
2018-04-20T13:39:08.584+0200 error: multiple errors in bulk operation: | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "11vjih0nu91ue11n8d7ecwjnw0" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "s6q144b7dhpq1hqlbw62v2l5v" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "1keai0knhnd331uutorsv3b7zz" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "pkeum55pckqb1sukz1qmrwysq" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup key: { : "1lkrb1ub99ozk1mlzejq4wecn4" } | |
- E11000 duplicate key error collection: playback.articles index: _id_ dup k |
NewerOlder