Skip to content

Instantly share code, notes, and snippets.

View tomzaku's full-sized avatar
🤤
Make some noise

Zaku tomzaku

🤤
Make some noise
  • Singapore
View GitHub Profile
@tomzaku
tomzaku / .zshrc
Last active September 6, 2016 12:04
.zshrc
# Path to your oh-my-zsh installation.
export ANDROID_HOME=/usr/local/opt/android-sdk
export ZSH=/Users/zaku/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gallois"
alias cfd="cd /Volumes/GIT/web/cf/cfguide-docs/technical && git pull && make html && -"
@tomzaku
tomzaku / myIP
Created September 8, 2016 07:16
Script Bash
Linux :
wget -qO- http://ipecho.net/plain ; echo
Mac :
curl -0q http://ipecho.net/plain ; echo
http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/
@tomzaku
tomzaku / Random fortune and images.sh
Last active November 2, 2020 03:50
Random fortune and images
#!/bin/bash
cows[1]=beavis.zen
cows[2]=bong
cows[3]=bud-frogs
cows[4]=bunny
cows[5]=cheese
cows[6]=cower
cows[7]=daemon
cows[8]=default
@tomzaku
tomzaku / redux.md
Last active November 24, 2021 09:04
Redux

https://github.com/markerikson/react-redux-links

  • server rendering
  1. About State Management

a. Mobx (imperative programing, mutable data) b. Redux (declarative programming, immutable data, functional programming): preditable data

1.b.1: Immutable vs Mutable

function hackIt() {
speed = 45; // in wpm (50 => 97 wpm)
inp = document.getElementsByTagName('input');
x = document.getElementsByTagName('span');
text = "";
init = 0;
end = 0;
for (var i = 0; i < x.length; i++) {
if (x[i].className === "lblUsername")
@tomzaku
tomzaku / dependency-react.md
Last active November 30, 2018 05:26
DEPENDENCY LISTING FOR REACT, Redux

DEPENDENCY LISTING

Requirements

Everytime an dependency is added, the reason for adding it should be written down here. E.g. purpose, etc.

1. Component

@blueprintjs

The core framework UI including basic components
@tomzaku
tomzaku / programming-paradigms.md
Last active January 4, 2019 04:40
Programming paradigms