Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Holy_Han holyhan

🏠
Working from home
View GitHub Profile
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
@puttin
puttin / Gemfile
Last active Jun 28, 2020
fetch WWDC HD videos' download links
View Gemfile
source 'https://rubygems.org'
gem 'httparty'
gem 'nokogiri'
gem 'pry'
@elmolm
elmolm / .bash_profile
Last active Dec 10, 2019
Reset all xcode simulators
View .bash_profile
...
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]';";
...
@PurpleBooth
PurpleBooth / README-Template.md
Last active Sep 14, 2021
A template to make good README.md
View README-Template.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

@idiomatic
idiomatic / wwdc.sh
Last active Apr 15, 2021
Fetch WWDC videos, slides, and sample code.
View wwdc.sh
#!/bin/bash
# usage: get [ RESOLUTION [ YEAR [ IDS... ] ] ]
resolution=${1:-SD}
year=${2:-2015}
shift
shift
ids=$*
RESOLUTION=$(echo $resolution | tr '[:lower:]' '[:upper:]')
@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active Sep 14, 2021 — forked from UniIsland/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
"""
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
@floriankugler
floriankugler / gist:6870499
Last active Aug 3, 2021
Mapping of NSURLConnection to NSURLSession delegate methods. Created by Mattt Thompson.
View gist:6870499
NSURLConnection | NSURLSession
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connectionShouldUseCredentialStorage: |
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge: | NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler:
| N