<script src="https://embed.github.com/view/geojson/<username>/<repo>/<ref>/<path_to_file>"></script>
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
$ /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user |
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
plutil -convert xml1 in.json -o out.plist |
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)method:(id)obj1,... | |
{ | |
va_list args; | |
void *arg; | |
va_start(args,obj1); | |
while((arg = va_arg(args, void *))) | |
{ | |
// Now you can use arg. This will only work when all arguments are objects. |
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/ruby | |
# | |
# This script helps us make doxygen comments in obj-c files in Xcode | |
# | |
# Created by Fred McCann on 03/16/2010. | |
# http://www.duckrowing.com | |
# | |
module Duckrowing |
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
code, tt { | |
margin: 0 2px; | |
padding: 0 5px; | |
white-space: nowrap; | |
border: 1px solid #eaeaea; | |
background-color: #f8f8f8; | |
border-radius: 3px; | |
} | |
pre code { |
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 f in "$@" | |
do | |
filename="${f%.*}" | |
plutil -convert xml1 "$filename".json -o "$filename".plist | |
done |
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)layoutSubviews { | |
[super layoutSubviews]; | |
// center the image as it becomes smaller than the size of the screen | |
CGSize boundsSize = self.bounds.size; | |
CGRect frameToCenter = self.imageView.frame; | |
// center horizontally | |
if (frameToCenter.size.width < boundsSize.width) { | |
frameToCenter.origin.x = (boundsSize.width - frameToCenter.size.width) / 2; | |
} else { | |
frameToCenter.origin.x = 0; |
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
<key>SignerIdentity</key> | |
<string>Apple iPhone OS Application Signing</string> |
OlderNewer