Skip to content

Instantly share code, notes, and snippets.

Working from home

Holy_Han holyhan

Working from home
View GitHub Profile
View WWDC Sessions by

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 / HD.txt
Created Oct 22, 2018 — forked from lexrus/HD.txt
All WWDC 2013 Session Videos URLs in dumped with Chrome. You can download these videos **without** a Apple developer account by running the script. There is also a sample code downloader here:
View HD.txt
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 /
Created Sep 12, 2018
iOS crash file symbolized!
#!/usr/bin/env python3
import os
import sys
import re
def symbol_crash_file():
crash file symbolized
holyhan /
Created Sep 6, 2018
To find duplicate files in folders
#!/usr/bin/env python3
import os
import sys
import hashlib
def hash_file(path, blocksize = 65536):
:param path: 文件路径
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
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic warning \"-Warc-performSelector-leaks\"")
_Pragma("clang diagnostic pop")
@interface AClass : NSObject
- (void)doSomething;
holyhan /
Created Aug 14, 2018 — forked from touilleMan/
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.