- git
- javascript + react (in progress)
- typescript
Client side project deployment
Lint + Unit test on Gitlab
const SCALE = 1000; | |
const rounds = 10; | |
// Standard Normal variate using Box-Muller transform. | |
function randn_bm() { | |
let u = 0, v = 0; | |
while(u === 0) u = Math.random(); //Converting [0,1) to (0,1) | |
while(v === 0) v = Math.random(); | |
let num = Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v ); | |
num = num / 10.0 + 0.5; // Translate to 0 -> 1 |
#!/bin/bash | |
set -euo pipefail | |
# Install nodejs and npm | |
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - | |
sudo yum install -y -q nodejs | |
# Install yarn | |
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo | |
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg |