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
# -*- coding: <utf-8> -*- | |
import sqlite3 | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf8') |
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
port -f uninstall inactive | |
port -u upgrade outdated |
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
推 timmysas: 風中白頭翁頭白中風 <--台大動物研究所高材生 | |
推 suhaw: 床上女子和子女上床 <--台大家庭研究所高材生 | |
推 MyCuteTaitai:景美衣內有內衣美景 <--台大城鄉研究所高材生 | |
推 starseven: 中國山中有中山國中 <--台大教育研究所高材生 | |
→ ruruking: 較南韓全國全韓南叫 <--台大外交研究所高材生 | |
推 AllenbeaR: 媽祖你幹麻幹你祖媽 <--台大宗教研究所退學生 |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6g7Kg0PS/r5oSIAbc7IrlQgVltNi1wCi/K6tB72jSNF7Np1wWd43t/dIIJYgdpgvqxx0tjuJsh1nI07f+6RRQumkQMqpFdbuS2o0y8bfFZon+aw/j63aB5IF+T7gWvJykeBQ3xa6PTH+Gdsh1KGZi8mM34cxcBqyD8kQaLSjHImWjQu/5nkA0fkM/FX35n794yuI2eRtPtXbgKmaql9UTRMU5K2noZyRcI5qwt0uBZ6FMqSbdmjGXOtGUBQ5QwNa3NovsXDw5Mg400YbF65oHL9GJBP+KXFJJ/yslbSZby/kERy7Iorx3WaebMoTDECjgppvVnRbQfEbY0f4jo7I9Q== [email protected] |
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
YH9PEJAKJTKL | |
RKHFPFFMLTE7 | |
4A7MAYWE67PY | |
9K3NF49MNE73 | |
3PHH67K4FPL4 | |
RJ776R9F4TER | |
P9LPT4TK3HHJ | |
HER963ERMJXX | |
MMAKY36WWN66 | |
3PNMHXH6Y4RW |
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
typedef id(^TestBlock)(id); | |
TestBlock (^blockForModificationType)(NSString *) = ^(NSString *type) { | |
return (TestBlock)[[^(id obj) { | |
if ([[obj modificationType] isEqualToString: type]) return obj; | |
return (id)nil; | |
} copy] autorelease]; | |
}; |
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
+(BOOL) isIPad { | |
BOOL isIPad=NO; | |
NSString* model = [UIDevice currentDevice].model; | |
if ([model rangeOfString:@"iPad"].location != NSNotFound) { | |
return YES; | |
} | |
return isIPad; | |
} |
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
On Emulator: | |
11-23 15:35:38.130: INFO/HelloFTP(1332): FTP 01 ããã£ã³ããã«.m4a size: 11351.77KB, time: 28.12s, average: 403.69KB/s | |
11-23 15:35:51.090: INFO/HelloFTP(1332): FTP DSCN2576.jpg size: 2295.48KB, time: 12.962s, average: 177.09KB/s | |
11-23 15:35:51.260: INFO/HelloFTP(1332): FTP steve_card.jpeg size: 27.51KB, time: 0.159s, average: 173.01KB/s | |
11-23 15:35:51.410: INFO/HelloFTP(1332): FTP ä¸æè¨±åè.png size: 1.18KB, time: 0.155s, average: 7.61KB/s | |
11-23 15:35:51.450: DEBUG/HelloFTP(1332): FTP done. | |
11-23 15:45:13.050: INFO/HelloFTP(1332): FTPS 01 ããã£ã³ããã«.m4a size: 11351.77KB, time: 555.059s, average: 20.45KB/s | |
11-23 15:47:00.360: INFO/HelloFTP(1332): FTPS DSCN2576.jpg size: 2295.48KB, time: 107.307s, average: 21.39KB/s |
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
#!/bin/bash | |
. /etc/bashrc | |
. /etc/profile | |
MONTHAGO=`date --date='31 day ago' +%Y/%m/%d` # Linux | |
#MONTHAGO=`date -v -31d +%Y/%m/%d` # BSD | |
/mnt/lib/hadoop/bin/hadoop fs -lsr /log_data | awk -F/ "NF==6" | grep -E "[0-9]{4}/[0-9]{2}/[0-9]{2}$" | awk -F/ "\$4\"/\"\$5\"/\"\$6 < \"$MONTHAGO\"" | awk '{print $8}' |
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
#!/bin/bash | |
. /etc/bashrc | |
. /etc/profile | |
TWO_DAYS_AGO=`date --date='2 day ago' +%Y-%m-%d` # Linux | |
#TWO_DAYS_AGO=`date -v -2d +%Y-%m-%d` # BSD | |
/mnt/lib/hadoop/bin/hadoop fs -lsr /log_data/out | awk -F/ 'NF == 5' | awk "\$6 < \"$TWO_DAYS_AGO\"" | awk '{print $8}' |
OlderNewer