Skip to content

Instantly share code, notes, and snippets.

View piscisaureus's full-sized avatar
🦕

Bert Belder piscisaureus

🦕
View GitHub Profile
C:\Users\BertBelder\d\deno>python tools\build.py -v -k 0 | tee o
[1/20] C:/Python27/python.exe ../../build/toolchain/win/tool_wrapper.py asm-wrapper environment.x64 ml64.exe -DDENO_MOCK_RUNTIME -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED "-DCR_CLANG_REVISION=\"335864-1\"" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=1 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=0x0A000002 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DDEBUG -DV8_ENABLE_CHECKS "-DV8_EMBEDDER_STRING=\"-deno\"" -DENABLE_DISASSEMBLER -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DOBJECT_PRINT -DVERIFY_HEAP -DV8_TRACE_MAPS -DV8_ENABLE_ALLOCATION_TIMEOUT -DV8_ENABLE_FORCE_SLOW_
// tslint:disable:typedef
// tslint:disable:comment-format
import * as tf from "@tensorflow/tfjs";
const DIM = 64; // Model dimensionality.
const BATCH_SIZE = 50;
const CRITIC_ITERS = 5; // How many critic iterations per generator iteration
const LAMBDA = 10; // Gradient penalty lambda hyperparameter
const ITERS = 200000; // How many generator iterations to train for
import { ones } from "./index";
const t1 = ones([100, 100]);
const t2 = ones([100, 100]);
let count = 10;
let total = 0;
const begin = Date.now() / 1000;
let end = begin;
let implementMe: any, math: any;
const compute = Symbol("compute");
const source = Symbol("source");
interface Computable {
[compute](): Promise<TensorBuffer>;
}
class TensorBuffer implements Computable {
C:\Users\BertBelder\d\x>npm install propel
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN x@1.0.0 No description
npm WARN x@1.0.0 No repository field.
+ propel@3.2.0
added 1 package in 0.422s
C:\Users\BertBelder\d\x>node -e "require('propel')"
Using DL backend.
@piscisaureus
piscisaureus / rb.c
Created February 11, 2018 23:55
Red-black tree
#include <assert.h>
#include <malloc.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
typedef intptr_t ssize_t;
typedef struct tree_node tree_node_t;
var heapdump = require('heapdump');
var lastHeapUsed;
setTimeout(function() {
dump(process.memoryUsage().heapUsed);
setInterval(function() {
var heapUsed = process.memoryUsage().heapUsed;
if (heapUsed > 2*lastHeapUsed)
dump(heapUsed);

Keybase proof

I hereby claim:

  • I am piscisaureus on github.
  • I am piscisaureus (https://keybase.io/piscisaureus) on keybase.
  • I have a public key whose fingerprint is 4427 2BEE EFA2 6F95 BF7E 4C96 7A77 887B 2E2E D461

To claim this, I am signing this object:

D:\iojs>git config --system -l
core.symlinks=false
core.autocrlf=input
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
d:\a\node_modules\strong-agent\src\compat.h(71): error C2061: syntax error : id
entifier 'FunctionCallback' [D:\a\node_modules\strong-agent\build\strong-agent.
vcxproj]
d:\a\node_modules\strong-agent\src\compat.h(139): error C4430: missing type spe
cifier - int assumed. Note: C++ does not support default-int [D:\a\node_modules
\strong-agent\build\strong-agent.vcxproj]
d:\a\node_modules\strong-agent\src\compat.h(139): error C2143: syntax error : m
issing ',' before '&' [D:\a\node_modules\strong-agent\build\strong-agent.vcxpro
j]
d:\a\node_modules\strong-agent\src\compat.h(140): error C2146: syntax error : m