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
for family in UIFont.familyNames() { | |
println(family) | |
for fname in UIFont.fontNamesForFamilyName(family as String) { | |
println(" " + (fname as String)) | |
} | |
} |
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
- (void)presentModalView | |
{ | |
CGFloat bounceDistance = 10.0; | |
CGFloat modalWidthPercentage = 0.9; | |
CGFloat modalHeightPercentage = 0.8; | |
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; | |
CGRect frame = keyWindow.bounds; | |
// The screenView is a plain black view with opacity |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CSV Compare</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script type="text/javascript"> | |
<!-- Basic CSV comparison. Aligns all identical values from CSV strings into a table. ---> | |
function makeItSo() { | |
var numberOfCols = 3; // Number of sets/columns we are working with |
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
@echo off | |
setlocal EnableDelayedExpansion | |
REM | |
REM Transcodes a GoToMeeting video (G2M4 codec, .WMV extension) | |
REM into a normal .WMV video. Essentially strips the proprietary | |
REM codec using the provided transcoder. | |
REM | |
REM There is a "Convert to Windows Media Player file" setting in | |
REM GTM that essentially does the same thing as this. However, | |
REM the transcoding begins IMMEDIATELY after the user terminates |
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
/** | |
* Retrieve all recipients for a given email list using as little memory as | |
* possible (or at least less than the default Zend one which is known to hog a bit) | |
* | |
* !!! DO NOT USE Zend_Gdata_Gapps::retrieveAllRecipients !!! | |
* | |
* @param Zend_Gdata_Gapps $gapps Reference to Zend_Gdata_Gapps object | |
* @param array $members Reference to array of member email addresses | |
* @param string $emaiList The email list from which members should be retrieved | |
* @param string $startRecipient Get next page of recipients starting from this email |
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
+ (NSString *)timeIntervalToStringWithInterval:(NSTimeInterval)interval | |
{ | |
NSString *retVal = @"At time of event"; | |
if (interval == 0) return retVal; | |
int second = 1; | |
int minute = second*60; | |
int hour = minute*60; | |
int day = hour*24; | |
// interval can be before (negative) or after (positive) |