Skip to content

Instantly share code, notes, and snippets.

@imcoddy
imcoddy / .gitignore
Created Jun 4, 2012
sina weibo OAuth with node-oauth for node.js+express
View .gitignore
node_modules
config.js
View huobitrader.user.js
// ==UserScript==//
// @name Huobi Trade Enhancer
// @namespace https://www.huobi.com
// @version 0.3.1
// @include https://www.huobi.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
// add fund in and out to calculate average price
var total_cny = 1024; //TODO set it to your total fund in.
View .cVimrc
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40
View osx_ramdisk.sh
#!/bin/bash
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864`
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152`
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK
CACHEDIR="/Volumes/RamDiskCache/$USER"
View .cvimrc
set autoupdategist
set completeonopen
set defaultnewtabpage
set dimhintcharacters
set incsearch
set linkanimations
set localconfig
set noautofocus
set nochangelog
set nocncpcompletion
View Karabiner_Private_For_Filco_Minila.xml
<?xml version="1.0"?>
<root>
<!-- 设备定义 -->
<devicevendordef>
<vendorname>FILCO_MINILA</vendorname>
<vendorid>0x0a5c</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MINILA_KEYBOARD</productname>
<productid>0x8502</productid>
View keybase.md

Keybase proof

I hereby claim:

  • I am imcoddy on github.
  • I am imcoddy (https://keybase.io/imcoddy) on keybase.
  • I have a public key whose fingerprint is 82ED 90A8 3A64 2486 C5E4 D37A 2D1C D43D E844 33DF

To claim this, I am signing this object:

View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
View surge_main.conf
// DON'T FORGET TO IMPORT proxy.conf TOO
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
// DNS OVERRIDE, REMOVE # IF YOU NEED
# dns-server = 223.6.6.6,223.5.5.5,114.114.114.114,114.114.115.115
@imcoddy
imcoddy / leetcode-enhancer.js
Last active Nov 9, 2015
Enhance my leetcode experience
View leetcode-enhancer.js
// ==UserScript==
// @name Leetcode Enhancer
// @namespace http://www.github.com/imcoddy
// @version 0.1.1
// @description Enhance leetcode website
// @author imcoddy
// @match https://leetcode.com/problemset/algorithms/
// @match https://leetcode.com/problems/*
// @match https://leetcode.com/tag/*
// @grant none