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/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
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
// ==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== |
NewerOlder