This file contains hidden or 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
function FindProxyForURL(url, host) | |
{ | |
var domain_list = [ | |
// "wikipedia.org", | |
"blogspot.com", | |
"wordpress.com", | |
"flickr.com", | |
"feedburner.com", | |
"v2ex.com", | |
"vox.com" |
This file contains hidden or 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
{ | |
/* | |
http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html | |
property list: NeXT text, XML file | |
string, list, dictionary; key-value pairs | |
"@t" = Command-t | |
"^t" = Control-t | |
"~t" = Option-t |
This file contains hidden or 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/python | |
# upload photos to google picasa | |
import gdata.photos.service | |
import getpass | |
import socket | |
import glob | |
import sys | |
import os |
This file contains hidden or 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
<?php | |
// Auto login to job168.com and refresh resume. | |
$username="kylexlau"; | |
$password="******"; | |
$jcookie="./jcookie"; | |
$ch = curl_init(); | |
$option = array( | |
CURLOPT_URL => 'http://www.job168.com/person/logon.jsp', |
This file contains hidden or 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
:top | |
@Echo off&title wkdxz @ BAT-GO At:2010-09-19 12:23:59 | |
echo 统计中...... | |
set cdir=D:\E3SDC\send\data\M10 | |
for /f "delims=" %%a in ('dir /s/b/a-d %cdir%') do set/a a+=1 | |
for /f "delims=" %%a in ('dir /s/b/ad %cdir%') do set/a b+=1 | |
cls&set /p=【%cdir%】文件夹内有 %b% 个文件夹, %a% 个文件,<nul | |
set a=0 | |
set b=0 | |
timeout /T 3 /NOBREAK |
This file contains hidden or 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
import os | |
def del_empty_dirs(s_dir,f): | |
b_empty = True | |
for s_target in os.listdir(s_dir): | |
s_path = os.path.join(s_dir, s_target) | |
if os.path.isdir(s_path): | |
if not del_empty_dirs(s_path): | |
b_empty = False |
This file contains hidden or 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
working_directory = '\\wsl$\Ubuntu-24.04\home\kyle' | |
[window] | |
decorations = "Full" | |
startup_mode = "Windowed" | |
[font] | |
size = 12.5 | |
[font.normal] |