Skip to content

Instantly share code, notes, and snippets.


Beeno Tung beenotung

View GitHub Profile
beenotung /
Last active Sep 1, 2016 — forked from isaacs/
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
beenotung /
Last active Oct 26, 2016 — forked from ryin/
bash script for installing tmux without root access
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e

Keybase proof

I hereby claim:

  • I am beenotung on github.
  • I am beenotung ( on keybase.
  • I have a public key ASCuGEFXtQCZuqwFt8qhtCY2l7-CjpU5M84qt8hFc7wsqQo

To claim this, I am signing this object:

beenotung / ai-repos.asciidoc
Created Dec 24, 2017
A resource reference sheet about AI to new comer
View ai-repos.asciidoc

List of resources about AI

For beginner


Artificial Intelligence library written in Golang

  • Neural Network

    1. Back Propagation

beenotung / redlink-join.ts
Last active May 24, 2018
Illustration of tentative RedLink lucky draw algorithm
View redlink-join.ts
beenotung / progress-demo.js
Created Feb 18, 2019
demo of npm package progress for cli progress bar
View progress-demo.js
var ProgressBar = require('progress');
var bar = new ProgressBar(' demo-ing progress [:bar] :percent :etas',{
complete: '=',
incomplete: ' ',
width: 20,
total: 100,
var timer = setInterval(()=>{
if(bar.curr< {
beenotung /
Last active Mar 4, 2019 — forked from nl5887/
Bash and zsh alias for Transfers files and directories to
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\ntransfer /tmp/\ncat /tmp/ | transfer"
return 1
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
beenotung / mobile-index.html
Last active Jul 15, 2019
html meta for mobile friendly
View mobile-index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
View git-compress
## use git to compress a single folder or file
## TODO use tmp folder to support operation within a git repo
set -e
set -o pipefail
View git-extract
## extract files archived from git-compress
## TODO use tmp folder to support operation within a git repo
set -e
set -o pipefail
if [ "$1" == "-p" ] || [ "$1" == "--progress" ]; then