Skip to content

Instantly share code, notes, and snippets.

View hikui's full-sized avatar

Henry H Miao hikui

View GitHub Profile
@hikui
hikui / SimpleHTTPServerWithUpload.py
Created October 19, 2015 05:27 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
//
// NSAttributedString+Attributes.h
// A category for NSAttributedString and NSMutableAttributedString to easily get or set sub-attributes.
//
// Created by Shilo White on 9/22/13.
// Copyright (c) 2013 XIDA Design & Technik. All rights reserved.
//
#import <Foundation/Foundation.h>
#!/usr/local/bin/ruby
# encoding: UTF-8
require 'yaml'
require "base64"
require 'rexml/document'
class PList < BasicObject
ELEMENT_PROCESSORS = {}
def self.process_element_named(name, &block); ELEMENT_PROCESSORS[name.to_s] = block; end
def self.process_element(elt) ; ELEMENT_PROCESSORS[elt.name][elt]; end
// Author: Oleg Andreev <oleganza@gmail.com>
// May 28, 2011
// Do What The Fuck You Want Public License <http://www.wtfpl.net>
#import "NSData+OADataHelpers.h"
#if !__has_feature(objc_arc)
#error ARC must be enabled!
#endif
/*
#####################################################################
# File : MHGSwipeNavigationController.h
# Project : StockBar
# Created : 13-12-30
# DevTeam : Thomas
# Author : 缪 和光
# Notes :
#####################################################################
### Change Logs ###################################################
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.7
#
# Latest Change:
# - Supports iPhone 5 / iPod Touch 5 (uses Apple's workaround to lipo bug)
#
# Purpose: