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
(lldb) po data | |
{ | |
post = { | |
authorType = ByteUser; | |
comments = ( | |
); | |
commentsCount = 0; | |
created = 1439682081451; | |
createdString = 1439682081451; | |
deleted = 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
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"allSources" ofType:@"json"]; | |
NSData *data = [NSData dataWithContentsOfFile:filePath]; | |
NSError *error = nil; | |
NSDictionary *result = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; | |
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 | |
# -*- coding: utf-8 -*- | |
import sys | |
# GraphikRegular | |
# GraphiAppRegular < 16.0 | |
lineSpacingMultiplier = 1.3 |
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
Berimbau Do Brasil | |
La Esquina | |
Eva's | |
Mooncake |
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
po [[UIWindow keyWindow] recursiveDescription] |
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
to configure your repo to point to an upstream repo: | |
1. add this to .git/config: | |
[remote "upstream"] | |
url = https://github.com/gitusername/repo-name.git | |
fetch = +refs/heads/*:refs/remotes/upstream/* | |
2. fetch the other repo's changes into upstream/master | |
git fetch upstream |
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
// create the observer | |
[[self contentView] addObserver:self forKeyPath:@"frame" options:NSKeyValueObservingOptionNew context:NULL]; | |
// track changes | |
-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { | |
if ([object isKindOfClass:[UIView class]]) { | |
CGRect rect = [[change valueForKey:NSKeyValueChangeNewKey] CGRectValue]; |
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
// | |
// CarFactory.swift | |
// test1 | |
// | |
// Created by Alex Meckes on 9/1/14. | |
// Copyright (c) 2014 Alex Meckes. All rights reserved. | |
// | |
import Foundation |
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
http://www.twitter.com/brand-name | |
http://www.facebook.com/brand-name | |
http://www.yelp.com/biz/brand-name | |
http://www.youtube.com/user/brand-name | |
http://www.linkedin.com/in/brand-name | |
http://brand-name.wordpress.com/ | |
http://brand-name.tumblr.com/ | |
http://pinterest.com/brand-name/ | |
http://www.hulu.com/profiles/brand-name | |
http://technorati.com/people/brand-name |
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
-(void)performFeedbackActionIfNeeded { | |
int index = 0; | |
BOOL found = NO; | |
int limit = [_logicUsedOnce count]; | |
// Loop over the array of logic blocks. | |
// They'll draw the right thing as necessary. | |
while (!found && (index < limit)) { | |
BOOL (^checkCase)() = [_logicUsedOnce objectAtIndex:index]; |
NewerOlder