Skip to content

Instantly share code, notes, and snippets.

View gaomd's full-sized avatar

Mengdi Gao gaomd

View GitHub Profile
## Sizes
http://iosdesign.ivomynttinen.com/
http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
## HIG Chinese Translation
https://isux.tencent.com/ios9-guideline-ch1.html
https://isux.tencent.com/ios9-guideline-ch2.html
https://isux.tencent.com/ios9-guideline-ch3-1.html
https://isux.tencent.com/ios9-guideline-ch3-2.html
@gaomd
gaomd / 北京市五险一金缴费与缴存比例.md
Last active August 29, 2015 14:20
北京市五险一金缴费与缴存比例

北京市五险一金缴费与缴存比例

五险一金,指中国内地用人单位给予劳动者的几种保障性待遇的合称,包括养老保险,医疗保险,失业保险,工伤保险,生育保险和住房公积金。 -- 维基百科

为了方便计算,以 10000 元做为基数

项目 个人部分 单位部分
养老保险 8% = 800.00 20% = 2000.00
@gaomd
gaomd / gist:243153bae273cb35d1e1
Last active August 29, 2015 14:16
Download latest version of VirtualBox for OS X from command line.
curl -LO http://download.virtualbox.org/virtualbox/$(curl -L http://download.virtualbox.org/virtualbox/LATEST.TXT)/$(curl -L http://download.virtualbox.org/virtualbox/$(curl -L http://download.virtualbox.org/virtualbox/LATEST.TXT)/MD5SUMS | grep OSX | cut -c 35-)
@gaomd
gaomd / gist:7da5de92561dbd0c6b44
Last active October 28, 2023 09:13
Migrating V2EX's starred topics to Pinboard
//
// This scripts helps you migrating V2EX's starred topics to Pinboard
// https://www.v2ex.com/t/137169
//
// 0. Edit authToken variable below.
// 1. Navigate to https://www.v2ex.com/my/topics
// 2. Paste code into browser console, and enter to execute
// 3. You should see the console scroll over some outputs
// 4. Wait for the "DONE :)" message
// 5. Move to the next page, and continue step 1
#!/bin/bash
TEAM=/zhihuDev
GROUP=$TEAM/sa
YES="havefun"
SORRY="sorry"
read -t 5 -p "Enter ur name" you
read -n1 -p "Is geek? [Y/N]" personality
goog.provide('ZhiHu.JavasSriptPirate');
goog.require("Programmer");
/*
Abstract class.
*/
ZhiHu.JavaScriptPirate = function(macBookPro, extraLCD){
this.myMacbook = macBookPro;
this.extraLCD = extraLCD;
};
class ZhihuDev(Developer):
@property
def characteristics(self):
return set(["TeamWork", "Devoted", "Creative"])
@property
def skills(self):
return {
"Language" : ["Python","Erlang", "Go", "C/C++"],
"OS" : ["Linux", "OS X", "BSD UNIX"],
@gaomd
gaomd / make_anchor_by_week_day.html
Last active October 5, 2015 01:08
make anchor by week day
<a href="#" id="goto">Link</a>
<script>
/* For http://www.v2ex.com/t/36493
* DEMO: http://jsfiddle.net/gaomd/asD58/3/
* by Mengdi Gao 2012
* Dedicated to the public domain
*/
(function(doc) {
"use strict";
@gaomd
gaomd / redirect.md
Created April 8, 2012 02:03
Improve my V2EX.com experience. [dropped support]

I'm sorry, since the PB3 upgrade of V2EX, this CSS no longer take effects. Please consider using my new project instead: Subv