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
#include <Foundation/Foundation.h> | |
typedef void (^voidBlock)(); | |
@interface MyObject : NSObject | |
- (void)doSth; | |
@end |
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>BackgroundBlur</key> | |
<real>0.39743955291970801</real> | |
<key>BackgroundColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VXTlNXaGl0ZYAC |
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
<h3>Upload a New Image</h3> | |
<%= form_for Image.new(:project => @project) do |f| %> | |
<%= f.hidden_field :project_id %> | |
<div class="sevenhundred"> | |
<div class="first column threeforty"> | |
<%= f.text_field :name, :class => 'form-text', :placeholder => 'Image Name', :size => '45' %> | |
</div> | |
<div class="last column threeforty"> | |
<%= f.file_field :image %> | |
</div> |
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
@interface Sender : NSObject | |
@property (weak) id delegate; | |
@property (assign) SEL selector; | |
- (void)doSth; | |
@end | |
@interface Receiver : NSObject | |
@property (strong) Sender* whatever; | |
@property (copy) void(^blockStuff)(); | |
- (void)assumeThisIsRun; |
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
ul ul, ol ol { margin-bottom: 0px !important; } // hack for soapy-spaghetti | |
// see the big 'ole list at http://chrismiller.at/blog/2011/12/21/soapy-spaghetti/ | |
// and notice how the sub-lists don't have the bottom margin | |
// as a side note, it'd be cool if someone knew how to do this without the evil | |
// !important bit, but it was a quick hack and worked for me. | |
// if the margin below nested lists is intentional, that's totally cool, too! |
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
// see http://alexcampbell.github.com//blog/2011/12/19/my-poor-attempt-at-classes/#comment-391786776 | |
#include <iostream> | |
#include <vector> | |
#include <cassert> | |
class C1; | |
class C2; | |
class C1 { | |
public: |
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
#include <iostream> | |
#include <vector> | |
Class Player; | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
int32_t min_players = 2; | |
int32_t max_players = 6; |
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 <Foundation/Foundation.h> | |
NSArray* allClassesConformingToProtocol(Protocol* p); // fwd dec; makes compiler stfu |
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 <Foundation/Foundation.h> | |
@interface C0 : NSObject | |
@end | |
@interface C1 : NSObject | |
@end | |
@interface C2 : NSObject | |
@end | |
int main(int argc, char *argv[]) { |
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
require 'rake/clean' | |
CC = 'clang' | |
CXX = 'clang++' | |
LD = CC | |
PRODUCTS = { | |
# executable => source file with the main method | |
'example_main' => 'example_main.m', | |
'default_description_example' => 'default_description_example.m' |