Skip to content

Instantly share code, notes, and snippets.

View holyhan's full-sized avatar
🏠
Working from home

Holy_Han holyhan

🏠
Working from home
View GitHub Profile
@holyhan
holyhan / HD.txt
Created October 22, 2018 05:15 — 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
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
@holyhan
holyhan / WWDC Sessions by Topics.md
Created October 22, 2018 05:03 — forked from devonc/WWDC Sessions by Topics.md
WWDC Sessions by Topics

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 September 30, 2018 08:48
Find lowest common ancestor for binary tree in 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 September 12, 2018 11:05
iOS crash file symbolized!
#!/usr/bin/env python3
import os
import sys
import re
def symbol_crash_file():
'''
crash file symbolized
@holyhan
holyhan / duplicate_find.py
Created September 6, 2018 05:52
To find duplicate files in folders
#!/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 August 20, 2018 14:45
Use _Pragma to replace #pragma, so that to resolve two pragmas in a single macro。
#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 August 14, 2018 09:39 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/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
"""