Skip to content

Instantly share code, notes, and snippets.

View siawyoung's full-sized avatar
🔧
Too many things to do, too little time.

Lau Siaw Young siawyoung

🔧
Too many things to do, too little time.
View GitHub Profile
journey platform category_id min_build_no variant fieldset
sell ios 1234 12 default {"screens": [...]}
listing_detail ios 1234 48 default {"screens": [...]}
listing_detail ios 1234 48 truncate_desc_exp_2 {"screens": [...]}
@siawyoung
siawyoung / pinout.txt
Created July 11, 2017 16:22
ZKB-2 Pinout
For the stock cable, the cable colours are from left to right: green, yellow white red black.
Green is ground (pin 4)
Yellow is 5V (pin 2)
White is reset (pin 1) (?)
Red is data (pin 3)
Black is clock (pin 5)
@siawyoung
siawyoung / .vimrc
Created October 15, 2016 17:01
My vimrc
if !has('nvim')
set nocompatible
endif
set hidden
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@siawyoung
siawyoung / .tmux21.conf
Created November 10, 2015 10:50
My tmux configuration, updated for 2.1. No change in behavior from my previous tmux config (as far as I can tell)
set -g prefix C-x
unbind-key C-b
bind-key C-x send-prefix
bind a next-window
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind c new-window -c "$HOME"
@siawyoung
siawyoung / sbs_bus_scraper.rb
Created April 23, 2015 13:54
Ruby script for scraping bus stops -> bus numbers from SBS
require 'nokogiri'
require 'httparty'
all_bus_stops = []
raw_doc = HTTParty.post('http://www.transitlink.com.sg/eservice/eguide/bscode_idx.php', :body => {"bs_code" => "01012"})
doc = Nokogiri::HTML(raw_doc)
# we get all of the bus stops first
@siawyoung
siawyoung / post_to_slack.rb
Created March 16, 2015 04:39
Script for posting to Slack's incoming webhooks
require 'json'
require 'optparse'
require 'net/http'
require 'net/https'
def parse_options(argv)
#######################################
# Please change the following as needed
#######################################
@siawyoung
siawyoung / .tmux.conf
Last active October 5, 2015 10:29
My tmux configuration settings. Feel free.
set -g prefix C-x
unbind-key C-b
bind-key C-x send-prefix
bind a next-window
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind c new-window -c "$HOME"
@siawyoung
siawyoung / fish_prompt.fish
Last active October 4, 2015 07:05
modified version of terlar's git prompt
set -xg fish_color_user d75fff
set -xg fish_color_host d78700
set -xg fish_color_git_added 00ff00
set -xg fish_color_git_clean 00ff00
set -xg fish_color_git_copied ff00ff
set -xg fish_color_git_deleted ff5f00
set -xg fish_color_git_dirty ff5f00
set -xg fish_color_git_modified 00afff
set -xg fish_color_git_renamed ff00ff
@siawyoung
siawyoung / mou-solarized-sy.css
Created May 16, 2014 16:37
Solarized Dark CSS for Mou. Clearness formatting combined with Solarized(Dark) colour theme because the original Solarized(Dark) theme formatting wasn't well done.
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
margin: 0;
padding: 0;