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
NSMutableArray *mutArry = [[NSMutableArray alloc] init]; | |
// Fill array with 20 dictionaries that each contain a NSNumber for key "num" | |
for(int i = 0;i<20;i++){ | |
NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:arc4random()%100], @"num", nil]; | |
[mutArry addObject:dict]; | |
} | |
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
<?php | |
!function_exists('profiler_v2') ? require_once('libraries/profiler/profiler.inc') : FALSE; | |
profiler_v2('ppc_test'); | |
/** | |
* Implement hook_install(). | |
* |
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
#import <Foundation/Foundation.h> | |
@interface NSString (Evil) | |
@property(assign, setter=initWithString:) NSString *initWithString; | |
@property(assign, readonly) NSString *test; | |
@property(assign, readonly) NSArray *(^split)(NSString *); | |
@end | |
int main(int argc, char *argv[]) | |
{ |
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 is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# | |
# Do NOT simply read the instructions in here without understanding |
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
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
# make ls display colors, reinforce with CLICOLOR and LSCOLORS | |
export CLICOLOR=1 | |
# LSCOLORS order: DIR, SYM_LINK, SOCKET, PIPE, EXE, BLOCK_SP | |
# CHAR_SP, EXE_SUID, EXE_GUID, DIR_STICKY, DIR_WO_STICKY | |
# a = black, b = red, c = green, d = brown, e = blue, | |
# f = magenta g = cyan, h = light gray, x = default |
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 DERP 1234 | |
#define MACRO_NAME(str) @ #str | |
#define STRINGIFY(str) MACRO_NAME(str) | |
NSLog(@"%@",MACRO_NAME(DERP)); | |
NSLog(@"%@",STRINGIFY(DERP)); | |
// Output: |
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
PATH=$PATH:/usr/local/bin | |
cd MyApp | |
mogenerator -m MyApp.xcdatamodeld/MyApp.xcdatamodel/ --output-dir Classes --template-var arc=true |
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
Pod::Spec.new do |s| | |
s.name = "OCPDFGen" | |
s.version = "0.1" | |
s.summary = "Wheee!" | |
s.homepage = "https://github.com" | |
s.license = '???' | |
s.author = { "mattyohe" => "" } | |
s.source = { :git => "git://github.com/ocrickard/OCPDFGen.git", :commit => "bcf26e3e4b" } | |
s.source_files = 'OCPDFGen/*' | |
s.dependency 'DTCoreText', '~> 1.0.1' |
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
Pod::Spec.new do |s| | |
s.name = 'TouchXML' | |
s.version = '0.2' | |
s.license = 'Simplified BSD License' | |
s.summary = "TouchXML is a lightweight replacement for Cocoa's NSXML* cluster of classes." | |
s.homepage = 'https://github.com/TouchCode/TouchXML' | |
s.author = { 'Jonathan Wight' => '[email protected]' } | |
s.source = { :git => 'https://github.com/TouchCode/TouchXML.git', :commit => '7bd9f17adb5642' } | |
s.source_files = 'Source/**/*.{h,m}' | |
s.requires_arc = true |
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/ | |
# | |
# Extended by Ronan O Ciosoig January 2012 | |
# | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), |
OlderNewer