Skip to content

Instantly share code, notes, and snippets.

View fanzeyi's full-sized avatar

Zeyi (Rice) Fan fanzeyi

View GitHub Profile
$.map($.map($("div[data-target-type='doulist']"), function(d) {return $(d).data("sid");}), function(sid) {$.post("http://www.douban.com/j/status/delete", {"sid" : sid, ck : get_cookie("ck")});});
@fanzeyi
fanzeyi / artboards.sketchpreset
Created June 22, 2013 15:47
Android Icon Artboards for Sketch
<dict>
<key>name</key>
<string>Android</string>
<key>presets</key>
<array>
<string>Icons</string>
<dict>
<key>height</key>
<integer>144</integer>
<key>name</key>
@-moz-document domain("v2ex.com") {
.thank_area{
display: none
}
}
a52dec
aalib
acl
alsa-lib
alsa-utils
amule
anthy
apache-ant
apr
apr-util
@fanzeyi
fanzeyi / rc.lua
Created January 4, 2013 07:59
awesome config for 3.5
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
/*
*
* Copyright (c) 2008-2010, Felix Bruns <felixbruns@web.de>
*
*/
function utf16to8(str) {
var out, i, len, c;
out = "";
@fanzeyi
fanzeyi / 8.012.c
Created November 6, 2012 09:11 — forked from bcho/8.012.c
#include <stdio.h>
void func(char *s, char *t);
int main()
{
char s[] = "time";
int t;
t = 10;
@fanzeyi
fanzeyi / scroll.css
Created November 1, 2012 18:34
Google Plus Scroll Style
::-webkit-scrollbar{
height:16px;
overflow:visible;
width:16px;
}
::-webkit-scrollbar-button{
height:0;
width:0;
}
@fanzeyi
fanzeyi / mayan.cpp
Created October 8, 2012 16:13
mayan game
/*
* =====================================================================================
*
* Filename: mayan.cpp
*
* Description: mayan game
*
* Version: 1.0
* Created: 2012年10月07日 00時15分49秒
* Revision: none
/*
* =====================================================================================
*
* Filename: hotel.cpp
*
* Description: hotel
*
* Version: 1.0
* Created: 2012年09月26日 19時07分55秒
* Revision: none