Skip to content

Instantly share code, notes, and snippets.


Daniel Pfeiffer mediabounds

View GitHub Profile
mediabounds / gist:3164737
Created Jul 23, 2012
Converts an ISO8601 duration ( to seconds (NSTimeInterval)
View gist:3164737
- (NSTimeInterval) timeIntervalWithISO8601duration:(NSString *)duration
// duration is in the format "P3Y6M4DT12H30M5S" OR "P2W"
// The P simply indicates that this is a duration, this should be the first character.
// The T is the separator between the date portion (day, month, year) and the time portion (hour, minute, second).
if ([duration characterAtIndex:0]!='P') return 0;
NSScanner *iso8601duration = [NSScanner scannerWithString:duration];
iso8601duration.charactersToBeSkipped = [NSCharacterSet characterSetWithCharactersInString:@"P"];
mediabounds /
Last active Sep 28, 2020
A small bash script to re-sign iOS applications.
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
You can’t perform that action at this time.