Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Holy_Han holyhan

🏠
Working from home
View GitHub Profile
@holyhan
holyhan / HD.txt
Created Oct 22, 2018 — forked from lexrus/HD.txt
All WWDC 2013 Session Videos URLs in https://developer.apple.com/wwdc/videos/ dumped with Chrome. You can download these videos **without** a Apple developer account by running the download.sh script. There is also a sample code downloader here: https://github.com/jfahrenkrug/WWDC-Downloader
View HD.txt
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
View WWDC Sessions by Topics.md

WWDC Sessions by Topics

Language and Runtime

  • WWDC 2012 Session 405 — Modern Objective-C
  • WWDC 2012 Session 413 — Migration to Modern Objective-C
  • WWDC 2013 Session 228 — Hidden Gems in Cocoa and Cocoa Touch
  • WWDC 2014 Session 402 — Introduction to Swift
  • WWDC 2014 Session 403 — Intermediate Swift
  • WWDC 2014 Session 404 — Advanced Swift
@holyhan
holyhan / lca.c
Last active Sep 30, 2018
Find lowest common ancestor for binary tree in C.
View lca.c
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
typedef struct TreeNode {
int value;
struct TreeNode *leftNode;
struct TreeNode *rightNode;
} TreeNode;
@holyhan
holyhan / SymbolResolution.py
Created Sep 12, 2018
iOS crash file symbolized!
View SymbolResolution.py
#!/usr/bin/env python3
import os
import sys
import re
def symbol_crash_file():
'''
crash file symbolized
@holyhan
holyhan / duplicate_find.py
Created Sep 6, 2018
To find duplicate files in folders
View duplicate_find.py
#!/usr/bin/env python3
import os
import sys
import hashlib
def hash_file(path, blocksize = 65536):
'''
计算path对应文件的MD5值,生成一个HEX摘要
:param path: 文件路径
@holyhan
holyhan / pragma.m
Last active Aug 20, 2018
Use _Pragma to replace #pragma, so that to resolve two pragmas in a single macro。
View pragma.m
#define LEAK_PRAGMA_BEGIN \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic warning \"-Warc-performSelector-leaks\"")
#define LEAK_PRAGMA_END \
_Pragma("clang diagnostic pop")
@interface AClass : NSObject
- (void)doSomething;
@end
@holyhan
holyhan / SimpleHTTPServerWithUpload.py
Created Aug 14, 2018 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
View SimpleHTTPServerWithUpload.py
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
You can’t perform that action at this time.