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
// build a smooth CGPath from an array of CGPoints (stored as NSValues) | |
- (CGMutablePathRef)newPathFromPoints:(NSArray *)points { | |
CGMutablePathRef mutablePath = CGPathCreateMutable(); | |
NSUInteger pointCount = [points count]; | |
if (pointCount > 0) { | |
CGPoint p0 = [points[0] CGPointValue]; |
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 nltk | |
# interactive download | |
# nltk.download() | |
nltk.download('punkt') | |
extra_abbreviations = ['ps', 'inc', 'Corp', 'Ltd', 'Co', 'pkt', 'Dz.Ap', 'Jr', 'jr', 'sp', 'Sp', 'poj', 'pseud', 'krypt', 'sygn', 'Dz.U', 'ws', 'itd', 'np', 'sanskryt', 'nr', 'gł', 'Takht', 'tzw', 't.zw', 'ewan', 'tyt', 'oryg', 't.j', 'vs', 'l.mn', 'l.poj' ] | |
position_abbrev = ['Ks', 'Abp', 'abp','bp','dr', 'kard', 'mgr', 'prof', 'zwycz', 'hab', 'arch', 'arch.kraj', 'B.Sc', 'Ph.D', 'lek', 'med', 'n.med', 'bł', 'św', 'hr', 'dziek' ] |
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 python3 | |
""" | |
Lyle Scott, III // [email protected] | |
$ python nuke_s3_bucket.py --help | |
usage: nuke_s3_bucket.py [-h] [-p PROFILE] bucket_name | |
positional arguments: | |
bucket_name The bucket name to delete. |
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
# | |
# Rsync a git repository without .git directory, excluding files as per .gitignore | |
# -- as if, the target directory is a checkout without .git directory. | |
# | |
rsync -azP --delete --delete-excluded --filter=":- .gitignore" --exclude .git/ src/dir/path/ user@host:/dst/dir/path/ | |
# | |
# Rsync a git repository including the .git directory, excluding files as per | |
# .gitignore -- as if, the target directory is a clone. | |
# |