Skip to content

Instantly share code, notes, and snippets.

@solomonhuang
solomonhuang / TurnipPrices.cpp
Created May 6, 2020 07:08 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{

Keybase proof

I hereby claim:

  • I am solomonhuang on github.
  • I am solomonhuang (https://keybase.io/solomonhuang) on keybase.
  • I have a public key ASACzWVowWZP68-yxbhBZUmgTSm5iDPYIDa3Veh4NvCdego

To claim this, I am signing this object:

dir /s /b /o:gn | "C:\Program Files\IDM Computer Solutions\UltraEdit\GNU\ctags.exe" -L - -f ctags.txt
[alias]
st = status
co = checkout
br = branch
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
@solomonhuang
solomonhuang / StevenBlack.conf
Last active February 15, 2016 06:44
Convert StevenBlack-hosts to unbound.conf
server:
local-data: "lb.usemaxserver.de A 0.0.0.0"
local-data: "tracking.klickthru.com A 0.0.0.0"
local-data: "gsmtop.net A 0.0.0.0"
local-data: "click.buzzcity.net A 0.0.0.0"
local-data: "ads.admoda.com A 0.0.0.0"
local-data: "stats.pflexads.com A 0.0.0.0"
local-data: "a.glcdn.co A 0.0.0.0"
local-data: "wwww.adleads.com A 0.0.0.0"
local-data: "ad.madvertise.de A 0.0.0.0"
@solomonhuang
solomonhuang / .vimrc
Last active June 28, 2016 06:53
vimrc
syntax enable
set tabstop=4
set expandtab
set number
set cursorline
filetype indent on
set wildmenu
set showmatch
set incsearch
set hlsearch
@solomonhuang
solomonhuang / Front-end-Developer-Interview-Questions-TC.md
Created November 19, 2015 15:56 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@solomonhuang
solomonhuang / download script
Last active August 29, 2015 14:20
list all mp4 link and copy to clipboard
while read line ; do curl -O $line; done < list.txt
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@solomonhuang
solomonhuang / gist:7443477
Created November 13, 2013 03:57
Easy password generator
genpw(){ < /dev/urandom tr -dc "_A-Z-a-z-0-9!@#$%^&()=" | head -c${1:-16};echo;}