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

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 / 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 / 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;
@elmolm
elmolm / .bash_profile
Last active December 10, 2019 13:57
Reset all xcode simulators
...
alias sim_reset="echo -ne 'xcode simulator reset'; osascript -e 'tell application \"iOS Simulator\" to quit'; osascript -e 'tell application \"Simulator\" to quit'; xcrun simctl erase all; echo ' [OK]';";
...
@puttin
puttin / Gemfile
Last active June 28, 2020 11:19
fetch WWDC HD videos' download links
source 'https://rubygems.org'
gem 'httparty'
gem 'nokogiri'
gem 'pry'
@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
@idiomatic
idiomatic / wwdc.sh
Last active April 10, 2022 03:52
Fetch WWDC videos, slides, and sample code.
#!/bin/bash
# usage: get [ RESOLUTION [ YEAR [ IDS... ] ] ]
resolution=${1:-SD}
year=${2:-2015}
shift
shift
ids=$*
RESOLUTION=$(echo $resolution | tr '[:lower:]' '[:upper:]')
@floriankugler
floriankugler / gist:6870499
Last active September 29, 2023 15:56
Mapping of NSURLConnection to NSURLSession delegate methods. Created by Mattt Thompson.
NSURLConnection | NSURLSession
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connectionShouldUseCredentialStorage: |
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge: | NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler:
| N
@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active March 16, 2024 13:08 — forked from UniIsland/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
"""
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 24, 2024 02:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites