Skip to content

Instantly share code, notes, and snippets.

View voznesenskym's full-sized avatar

Michael Voznesensky voznesenskym

View GitHub Profile
@numo16
numo16 / Macros.h
Created August 20, 2012 20:38
Some useful iOS/Objective-C Macros
#define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define UserDefaults [NSUserDefaults standardUserDefaults]
#define NotificationCenter [NSNotificationCenter defaultCenter]
#define SharedApplication [UIApplication sharedApplication]
#define Bundle [NSBundle mainBundle]
#define MainScreen [UIScreen mainScreen]
#define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES
#define HideNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO
#define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x
#define NavBar self.navigationController.navigationBar
@voznesenskym
voznesenskym / tess_bulk_download.py
Last active January 10, 2020 11:24
Bulk Download the Toronto emotional speech set (TESS) https://tspace.library.utoronto.ca/handle/1807/
#!/usr/bin/env python3
# Python Version: 3.4.2
# bs4 version: 4.3.2-2
from urllib.request import urlopen
from bs4 import BeautifulSoup
import pickle
links = []