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
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# 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 |
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
// | |
// RVNReceiptValidation.m | |
// | |
// Created by Satoshi Numata on 12/06/30. | |
// Copyright (c) 2012 Sazameki and Satoshi Numata, Ph.D. All rights reserved. | |
// | |
// This sample shows how to write the Mac App Store receipt validation code. | |
// Replace kRVNBundleID and kRVNBundleVersion with your own ones. | |
// | |
// This sample is provided because the coding sample found in "Validating Mac App Store Receipts" |
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
- (NSURL)URLFromString:(NSString *)string; | |
{ | |
static NSPasteboard *pboard; | |
if (!pboard) pboard = [[NSPasteboard pasteboardWithUniqueName] retain]; | |
[pboard clearContents]; | |
[pboard writeObjects:@[string]]; | |
NSURL *result = [WebView URLFromPasteboard:pboard]; | |
return result; |
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
# RAILS_ROOT/config/unicorn.rb | |
# Search for "# SET ME!" and replace these with your own settings!. | |
HOW_DEEP_WE_R_FROM_RAILS_ROOT = "../.." | |
# Set environment to development unless something else is specified | |
RAILS_ROOT = File.expand_path(HOW_DEEP_WE_R_FROM_RAILS_ROOT, File.dirname(__FILE__)) | |
SHARED_PATH = File.expand_path('../shared', RAILS_ROOT) | |
ENV['BUNDLE_GEMFILE'] = File.expand_path("#{HOW_DEEP_WE_R_FROM_RAILS_ROOT}/Gemfile", File.dirname(__FILE__)) |
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
Thread 0 Crashed: | |
0 libsystem_kernel.dylib 0x3602632c __pthread_kill + 8 | |
1 libsystem_c.dylib 0x323de29f abort + 94 | |
2 ImageIO 0x37eca8bf png_error + 114 | |
3 ImageIO 0x37ec9fe3 png_write_end + 46 | |
4 ImageIO 0x37ec6069 writeOnePng + 2260 | |
5 ImageIO 0x37ec578b _CGImagePluginWritePNG + 82 | |
6 ImageIO 0x37ec56fd CGImageDestinationFinalize + 132 | |
7 UIKit 0x37342fa7 UIImagePNGRepresentation + 274 |
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 more info: https://gist.github.com/1120938 |
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
@interface UINavigationController (Extensions) | |
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated willPopHandler:(void (^)(void))inHandler; | |
@end | |
#### SNIP HERE ############ | |
#import "UINavigationController+Extensions.h" |
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 ruby | |
# get all the file names we are interested in | |
source_filenames = Dir['**/*.m'] | |
source_filenames.concat( Dir['**/*.xib'] ) | |
png_filenames = Dir['**/*.png'] | |
image_references = Hash.new | |
png_filenames.each { |filename| image_references[File.basename(filename.downcase)] = 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
#!/usr/bin/python | |
# Nicolas Seriot | |
# 2011-01-06 | |
# http://github.com/nst/objc_dep | |
""" | |
Input: path of an Objective-C project | |
Output: import dependancies Graphviz format |
NewerOlder