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
# This rewrites all dynamic requests to /system/maintenance.html if that | |
# file exists, this file is created by Capistrano's disable task. | |
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
RewriteRule ^.*$ /system/maintenance.html [L] |
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
UITextView * nameView = [[UITextView alloc] initWithFrame:CGRectMake(0, 200, 350, 50)]; | |
nameView.text = @"hello world, overwrite me"; | |
nameView.transform = CGAffineTransformMakeRotation( CC_DEGREES_TO_RADIANS( 90.0f ) ); | |
nameView.delegate = self; | |
[nameView setReturnKeyType:UIReturnKeyDone]; | |
[[[CCDirector sharedDirector] openGLView] addSubview:nameView]; |
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 | |
# | |
# Creates the required icon images for iOS: | |
# Icon.png (57x57) | |
# Icon@2x.png (114x114) | |
# Icon-72.png (72x72) | |
# Icon-Small-50.png (50x50) | |
# Icon-Small.png (29x29) | |
# Icon-Small@2x.png (58x58) | |
# |
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* version = @"Version (unknown)"; | |
NSDictionary* dict = [[NSBundle mainBundle] infoDictionary]; | |
if (dict) { | |
version = [NSString stringWithFormat:@"Version %@", | |
[dict objectForKey:@"CFBundleVersion"]]; | |
} |
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
# miner_pool.sh - executes a script against each instance: ./mine_pool.sh setup.sh | |
# list your instances here | |
# use ami-12b6477b | |
INSTANCES="ec2-50-19-52-212.compute-1.amazonaws.com | |
ec2-50-16-126-107.compute-1.amazonaws.com | |
ec2-184-72-177-183.compute-1.amazonaws.com | |
ec2-50-17-126-57.compute-1.amazonaws.com | |
ec2-184-73-119-153.compute-1.amazonaws.com" |
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
~ $ cat ~/.gemrc | |
--- | |
:update_sources: true | |
:bulk_threshold: 1000 | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com | |
gem: --no-ri --no-rdoc | |
:verbose: true | |
:benchmark: false |
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
#---------------------------------------------------------------------- | |
# Mac OS X noise | |
#---------------------------------------------------------------------- | |
.DS_Store | |
profile | |
#---------------------------------------------------------------------- | |
# XCode (and ancestors) per-user config (very noisy, and not relevant) | |
#---------------------------------------------------------------------- | |
*.mode1 |
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
#define SharedAdBannerView ((btcreportAppDelegate *)[[UIApplication sharedApplication] delegate]).adBanner | |
@interface btcreportAppDelegate : NSObject <UIApplicationDelegate> { | |
UIWindow *window; | |
UINavigationController *navigationController; | |
ADBannerView *adBanner; | |
} |
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
Bounty: 3BTC | |
Expires: Feb 17, 2012 | |
Submission and questions: caetano@gmail.com | |
Notes: Please post your source code using a public github:gist | |
Using Node.js, render links/text as HTML from a twitter feed and group by hashtag in alphabetical order | |
(All solutions submitted and winner will be listed below) |
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
// | |
// VivaceLogoView.h | |
// zeon | |
// | |
// Created by Richard Caetano on 4/2/12. | |
// Copyright (c) 2012 Modal Software Corporation. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
OlderNewer