View boot.py
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
#!/usr/bin/env python | |
import os | |
import sys | |
import vocabcompiler | |
lib_path = os.path.abspath('../client') | |
sys.path.append(lib_path) |
View gist:11092828
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 re | |
f = open('D-small-2-attempt0.in.txt','r') | |
T = int(f.readline()) | |
for t in range(T): | |
s = f.readline() | |
counter = 0 | |
ghosts = re.findall(r'GHOST', s) |
View gist:4139881
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
disclosureIndicator.layer.shadowColor = [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.5].CGColor; | |
disclosureIndicator.layer.shadowOffset = CGSizeMake(0, 1); | |
disclosureIndicator.layer.shadowOpacity = 1.0; | |
disclosureIndicator.layer.shadowRadius = 1; | |
disclosureIndicator.layer.masksToBounds = NO; |