This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name xunlei lixian web version batch downloader | |
// @author jnozsc | |
// @namespace https://twitter.com/jnozsc | |
// @description xunlei lixian web version batch downloader. modify from @sycx 's applescript http://j.mp/lZlP9g. compatible with Firefox.chrome.safari | |
// @include http://dynamic.cloud.vip.xunlei.com/* | |
// @match http://dynamic.cloud.vip.xunlei.com/* | |
// @version 1.1 | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new array a[10]; // input | |
new array b[10]={0,0,0,0,0,0,0,0,0,0}; | |
bool flag = true; | |
int c = 0; | |
while(flag){ | |
flag = false; | |
int i; | |
// loop | |
for(i=0,i<10,i++){ | |
int c = countNumber(b,a[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import string | |
import math | |
ipv4url='http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | |
up="http://autoddvpn.googlecode.com/svn/trunk/vpnup.sh" | |
down="http://autoddvpn.googlecode.com/svn/trunk/vpndown.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new project_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! In file included from /usr/local/include/fuse/fuse.h:857, from :0: | |
/usr/local/include/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:29:in 'require': no such file to load — jcode (LoadError) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NoLike for douban | |
// @namespace jnozsc | |
// @description Remove Like from douban timeline | |
// @include http://www.douban.com/* | |
// @match http://www.douban.com/* | |
// @version 1.2 | |
// ==/UserScript== | |
function main($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Better Douban | |
// @author jnozsc | |
// @namespace http://www.douban.com/people/1563045/ | |
// @description I need a better douban | |
// @include http://www.douban.com/* | |
// @match http://www.douban.com/* | |
// @include http://book.douban.com/* | |
// @match http://book.douban.com/* | |
// @include http://music.douban.com/* |
OlderNewer