- Introduction to Functional Programming Johannes Weiß - http://kcy.me/1ngiv
- ReactiveCocoa at MobiDevDay Andrew Sardone - http://kcy.me/1nhl3
- The Future Of ReactiveCocoa Justin Spahr-Summers - http://kcy.me/1nhs7
- Enemy of the State Justin Spahr-Summers - http://kcy.me/1njzs
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - http://kcy.me/1pyva
- Functioning as a Functionalist Andy Matuschak - http://kcy.me/22o45
- Controlling Complexity in Swift Andy Matuschak - http://kcy.me/23sc9
- Functional and reactive programming with Swift Ash Furrow -
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 -*- | |
#encoding=utf-8 | |
import urllib | |
import urllib2 | |
import os | |
import time | |
from BeautifulSoup import BeautifulSoup |
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
[General] | |
loglevel = notify | |
[Proxy] | |
Proxy = shadowsocks, 1.2.3.4, 443, rc4-md5, password | |
[Rule] | |
DOMAIN-SUFFIX,appldnld.apple.com,DIRECT | |
DOMAIN-SUFFIX,adcdownload.apple.com,DIRECT | |
DOMAIN-SUFFIX,swcdn.apple.com,DIRECT |
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
{ | |
"491289025" : "ijinshan-kappmarket://", | |
"301521403" : "fb103361823069955://", | |
"492178411" : "ils492178411://", | |
"346142396" : "fb234434003713://", | |
"310633997" : "whatsapp://", | |
"370614765" : "com.condenet.newyorker://", | |
"325058491" : "rnmddisco://", | |
"382952264" : "epichttp://", | |
"477048487" : "predictwind://", |
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 re | |
import urllib2 | |
import urllib | |
import sys | |
import time | |
#get html of page | |
def getHtml(url): | |
page = urllib2.urlopen(url) | |
html = page.read() |
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
# Created by http://www.gitignore.io | |
### Xcode ### | |
build | |
*.xcodeproj/* | |
!*.xcodeproj/project.pbxproj | |
!*.xcworkspace/contents.xcworkspacedata | |
### Objective-C ### |
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
buildNumber=$(date "+%y%m%d") | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
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
// | |
// RNSwizzle.m | |
// MethodSwizzle | |
#import "RNSwizzle.h" | |
#import <objc/runtime.h> | |
@implementation NSObject (RNSwizzle) | |
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)setPannableView:(UIView *)pannableView // maybe this is a setter in a Controller | |
{ | |
_pannableView = pannableView; | |
UIPanGestureRecognizer *pangr = | |
[[UIPanGestureRecognizer alloc] initWithTarget:pannableView action:@selector(pan:)]; | |
[pannableView addGestureRecognizer:pangr]; | |
} | |
//implement a gesture |
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
//Begin the path | |
UIBezierPath *path = [[UIBezierPath alloc] init]; | |
//Move around, add lines or arcs to the path | |
[path moveToPoint:CGPointMake(75, 10)]; | |
[path addLineToPoint:CGPointMake(160, 150)]; | |
[path addLineToPoint:CGPointMake(10, 150]); | |
//Close the path | |
[path closePath]; |
NewerOlder