| Tables | Are | Cool |
This file contains hidden or 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
# Description: | |
# Let's make Hubot say what you want in a particular room! :D | |
# | |
# Dependencies: | |
# - | |
# | |
# Configuration: | |
# - | |
# | |
# Commands: |
This file contains hidden or 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
# Description: | |
# Automatically nags "non-offline" people in a room at a particular time interval to enter something. | |
# | |
# Dependencies: | |
# cron, time, node-xmpp | |
# | |
# Configuration: | |
# HIPCHAT_STANDUP_ROOM_JID e.g. '[email protected]' | |
# HIPCHAT_STANDUP_TIMEZONE e.g. "Asia/Bangkok" or "Europe/Paris" or "America/New_York" | |
# HIPCHAT_STANDUP_CRON_TIME e.g. '0 0 14-18 * * 1-5' means weekdays, every hour from 2-6PM |
This file contains hidden or 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 *token = [[NSProcessInfo processInfo] globallyUniqueString]; |
This file contains hidden or 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
/* | |
Copyright (C) 2013 by Thongchai Kolyutsakul | |
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 Software is | |
furnished to do so, subject to the following conditions: | |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Information</key> | |
<dict> | |
<key>Description</key> | |
<string>Map Rails ActiveSupport timezones to iOS readable timezone IDs.</string> | |
<key>Version</key> | |
<string>1.0</string> |
This file contains hidden or 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
# A bash script to put in Xcode's "Run Script" build phrase to make xcodebuild able to run logic tests - to make automated testing possible. | |
# It will launch app using ios-sim and set up environment to inject test bundle into application. | |
# Source: http://stackoverflow.com/a/12682617/504494 | |
# Dependencies: | |
# - ios-sim (https://github.com/phonegap/ios-sim) | |
# Usage: | |
# - create a new test target in the project | |
# - go to Edit Scheme... > Build tick "Run" next to your test target |
This file contains hidden or 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 <AssetsLibrary/AssetsLibrary.h> | |
UIImage *image = someImage; | |
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; | |
[library writeImageToSavedPhotosAlbum:image.CGImage | |
orientation:(ALAssetOrientation)image.imageOrientation | |
completionBlock:nil]; |
This file contains hidden or 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
CGRect frame = (CGRect){ | |
.origin.x = 60, | |
.origin.y = 80, | |
.size.width = 200, | |
.size.height = 300 | |
}; |
This file contains hidden or 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
/** Converts NSData to a hexadecimal string. */ | |
@interface NSData (NSData_hexadecimalString) | |
/** Changes NSData object to a hex string. | |
@returns hexadecimal string of NSData. Empty string if data is empty.*/ | |
- (NSString *)hexadecimalString; | |
@end | |
@implementation NSData (NSData_hexadecimalString) |
OlderNewer