Skip to content

Instantly share code, notes, and snippets.

-(void)setUpLogicCasesUsedOnce {
_logicUsedOnce = [[NSMutableArray alloc] init];
__block HukkOrNotFeedbackMessageViewController *blockSelf = self;
//----
// First 1 Positive I
[_logicUsedOnce addObject:^{
if (blockSelf.positives == 3) {
[blockSelf showGenericViewWithFade:@"positiveI"
-(void)setUpLogicCasesUsedRepeatedly {
_logicUsedRepeatedly = [[NSMutableArray alloc] init];
__block HukkOrNotFeedbackMessageViewController *blockSelf = self;
//----
// 1 Positive I
[_logicUsedRepeatedly addObject:^{
if (blockSelf.lastAction > 0) {
[blockSelf showViewWithFade:blockSelf.positiveSmall
{"foo": {"bar":null,}}
1 error generated.
scons: *** [Build/android-armeabi-debug/io_29.harpers/Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_AppDelegate/TNNotificationsHandler.m.o] Error 1
Compiling /Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_Newskit/TNIssueHandler.m
scons: *** [Build/android-armeabi-debug/io_29.harpers/Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_AppDelegate/AppDelegate.m.o] Error 1
scons: *** [Build/android-armeabi-debug/io_29.harpers/Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_Models/Article.m.o] Error 1
In file included from /Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_Newskit/TNIssueHandler.m:9:
/Users/natalie/Development/Dumpling/TNS_Dumpling/TNS_Newskit/TNIssueHandler.h:10:9: fatal error:
'Newsstandkit/NewsstandKit.h' file not found
#import <Newsstandkit/NewsstandKit.h>
@nataliepo
nataliepo / gist:6622987
Created September 19, 2013 12:51
checking out a branch in a new folder
git clone user@git-server:project_name.git -b branch_name /some/folder
{
"id": 1234, # unique identifier - from Tierra DB is OK
"title": "Alix Pearlstein",
"author": "John Pilson",
"category": "Art",
"subcategory": "Interview",
"tags": "art, interview, sculpture, New York, B, Wurtz, John Newman"
"body": "<!--IMAGE 0--><p>Artists are expected to participate in all sorts of conversations...",
"images": [{
"id": 1234678,
@nataliepo
nataliepo / gist:6455994
Created September 5, 2013 20:50
transporter.txt
[2013-09-05 16:50:07 EDT] <main> INFO: Transporter has been successfully updated. The updated components will be available the next time Transporter runs.
usage: iTMSTransporter [-help <arg> | -info | -m <arg> | -version] [-o <arg>] [-v
<arg>] [-WONoPause <arg>] [-Xmx1024m]
iTMSTransporter : iTunes Store Transporter 1.7.5.2
-help <arg> Show this help. If a mode value is specified, show help specific
to that mode.
-info The -info option should be used by itself and returns the
copyright notice and acknowledgements.
-m <arg> The -m option specifies the tool's mode. The valid values are:
verify, upload, provider, diagnostic, lookupMetadata, status,
<mt:include module="Global Vars">
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<head>
<title><$MTEntryTitle remove_html="1"$> | Serious Eats : Recipes</title>
<meta name="description" content="<MTEntryBody words="40" convert_breaks="0" encode_html="1">..." />
<MTEntryIfTagged><meta name="keywords" content="Serious Eats, food, media, recipes, news, <MTEntryTags glue=", "><$MTTagName$></MTEntryTags>" /></MTEntryIfTagged>
<mt:include module="sponsorLogic">
@nataliepo
nataliepo / iphone.css
Created August 2, 2013 20:05
iphone snippet
h3 {
-webkit-margin-after: 1.5em;
-webkit-margin-after: 0.5em;
}
<!-- in-line styles for italic text -->
<style type="text/css">
.text-ital {
font-style: italic;
}
</style>