Skip to content

Instantly share code, notes, and snippets.

View joshheald's full-sized avatar

Josh Heald joshheald

View GitHub Profile
@Epithumia
Epithumia / cameraCtrlTether2.py
Created June 30, 2014 23:31
Proof of concept : wireless tethering on the E-M1, in camera control mode, now with smarter polling
# -*- coding: utf-8 -*-
from urllib import urlretrieve
from urllib2 import urlopen
import re
import time
def getInitialData():
data = []
@Epithumia
Epithumia / cameraCtrlTether.py
Created June 29, 2014 20:24
Proof of concept : wireless tethering on the E-M1, in camera control mode
# -*- 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]
@Epithumia
Epithumia / getEM1Imagesv2.py
Created June 14, 2014 10:52
Simple script to download images wirelessly from the Olympus E-M1 to the computer (with progress bar)
# -*- 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)
@Epithumia
Epithumia / getEM1Images.py
Created June 14, 2014 10:45
Simple script to download images wirelessly from the Olympus E-M1 to the computer
# -*- 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)
@epologee
epologee / NSBundle+TTTOverrideLanguage.h
Created October 11, 2013 19:26
Use method swizzling to change both language and locale at runtime, to use in your unit tests.
#import <Foundation/Foundation.h>
@interface NSBundle (TTTOverrideLanguage)
+ (void)ttt_overrideLanguage:(NSString *)language;
+ (void)ttt_resetLanguage;
@end