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
#import <Foundation/Foundation.h> | |
@interface NSBundle (TTTOverrideLanguage) | |
+ (void)ttt_overrideLanguage:(NSString *)language; | |
+ (void)ttt_resetLanguage; | |
@end |
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
# -*- coding: utf-8 -*- | |
from urllib import urlretrieve | |
from urllib2 import urlopen | |
import re | |
page = urlopen('http://192.168.0.10/DCIM').read() | |
#print page | |
m = re.findall('(wlansd.*DCIM.*;)',page) |
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
# -*- coding: utf-8 -*- | |
from urllib2 import urlopen | |
import re | |
page = urlopen('http://192.168.0.10/DCIM').read() | |
#print page | |
m = re.findall('(wlansd.*DCIM.*;)',page) |
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
# -*- coding: utf-8 -*- | |
from urllib import urlretrieve | |
from urllib2 import urlopen | |
import re | |
import time | |
urlopen('http://192.168.0.10/switch_cammode.cgi?mode=play').read() | |
page = urlopen('http://192.168.0.10/get_imglist.cgi?DIR=/DCIM').read() | |
m = re.findall('(DCIM.*)',page)[0].split(',')[1] |
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
# -*- coding: utf-8 -*- | |
from urllib import urlretrieve | |
from urllib2 import urlopen | |
import re | |
import time | |
def getInitialData(): | |
data = [] |