This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
class Object: | |
pass | |
class Person: | |
def __init__(self): | |
self.feeling_colorname_map = dict() | |
self.wavelength_feeling_map = dict() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################## | |
# | |
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MJGImageLoader.h | |
// MJGFoundation | |
// | |
// Created by Matt Galloway on 18/01/2012. | |
// Copyright 2012 Matt Galloway. All rights reserved. | |
// | |
/** | |
* Example usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. .vr | |
qBMBBBMBMY | |
8BBBBBOBMBMv | |
iMBMM5vOY:BMBBv | |
.r, OBM; .: rBBBBBY | |
vUL 7BB .;7. LBMMBBM. | |
.@Wwz. :uvir .i:.iLMOMOBM.. | |
vv::r; iY. ...rv,@arqiao. | |
Li. i: v:.::::7vOBBMBL.. | |
,i7: vSUi, :M7.:.,:u08OP. . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSData+HG_DataHealing.h | |
// HGDataHealing | |
// | |
// Created by 缪 和光 on 14-3-7. | |
// Copyright (c) 2014年 Hokuang. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Oleg Andreev <[email protected]> | |
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static CTTelephonyNetworkInfo * __telephonyNetworkInfo; | |
SBNetworkReachability SBGetAccurateNetworkReachability() | |
{ | |
SBNetworkReachability reachability = SBGetNetworkReachability(); | |
if (reachability == SBNetworkReachabilityMobile) { | |
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f) { | |
if (!__telephonyNetworkInfo) { | |
__telephonyNetworkInfo = [CTTelephonyNetworkInfo new]; | |
} | |
NSString * radioAccessTechnology = __telephonyNetworkInfo.currentRadioAccessTechnology; |
OlderNewer