Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
----
高级
-
易学易读易维护
| http://devstreaming.apple.com/videos/wwdc/2013/710xfx3xn8197k4i9s2rvyb/710/710-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/202xdx2x47ezp1wein/202/202-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/200xdx2x35e1pxiinm/200/200-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/413xdx5x97itb5ek4yex3r7/413/413-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/612xax4xx65z1ervy5np1qb/612/612-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/221xex4xxohbllf4hblyngt/221/221-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/220xbx4xipaxfd1tggxuoib/220/220-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/711xcx4x8yuutk8sady6t9f/711/711-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/404xbx2xvp1eaaqonr8zokm/404/404-HD.mov?dl=1 | |
| http://devstreaming.apple.com/videos/wwdc/2013/505xbx4xrgmhwby4oiwkrpp/505/505-HD.mov?dl=1 |
| # -*- coding: utf8 -*- | |
| # 下载速度很慢, | |
| import urllib2, urllib | |
| import sys | |
| import os | |
| import socket | |
| import re | |
| import socks |
As Apple's Official Doc said:
-viewDidUnloadis deprecated in iOS 6.0. Views are no longer purged under low-memory conditions and so this method is never called.
Meanwhile, it's better to remove all -viewDidUnload implements from projects that the deployment target is iOS 6.0 or later. But removing it one by one is boring, especially you've hundreds of controllers & several projects.
So, is there any script or command can do this batch job?
| // | |
| // NSPredicate+Distinct.h | |
| // | |
| // Created by Maurizio Cremaschi on 11/11/2013. | |
| // Copyright (c) 2013 Myfleek Ltd. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface NSPredicate (Distinct) |
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
| #ifdef NSTextAlignmentCenter | |
| #define BLTextAlignmentCenter NSTextAlignmentCenter | |
| #define BLTextAlignmentLeft NSTextAlignmentLeft | |
| #define BLTextAlignmentRight NSTextAlignmentRight | |
| #define BLTextTruncationTail NSLineBreakByTruncatingTail | |
| #define BLTextTruncationMiddle NSLineBreakByTruncatingMiddle | |
| #else | |
| #define BLTextAlignmentCenter UITextAlignmentCenter | |
| #define BLTextAlignmentLeft UITextAlignmentLeft | |
| #define BLTextAlignmentRight UITextAlignmentRight |
| 500 DAYS OF SUMMER -- breakdown of the movie timeline | |
| by David Potsiadlo (@davidpots) | |
| ------------------------------------------------------------------------ | |
| ============================================================================================================ | |
| THE ORDER SEEN IN THE MOVIE | |
| ============================================================================================================ | |
| 488 0:00:51 on a bench, she has the ring | |
| 1 0:01:10 tom his his board meeting. jan 8th. when he first sees summer in his office. |
| // Playground - noun: a place where people can play | |
| import Cocoa | |
| extension String { | |
| func dictionaryFromJSON () -> Dictionary<String, AnyObject>? { | |
| if let dict = NSJSONSerialization.JSONObjectWithData(self.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true), | |
| options: .AllowFragments, | |
| error: nil) as? Dictionary<String,AnyObject> | |
| { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.