If you do not install pip, you can try this link: http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
- install:
easy_install supervisor
- configure:
mkdir -p /etc/supervisord/conf.d
#!/bin/bash | |
# | |
# 通过对比 ping 响应时间,找到本机最快的上传ip | |
# Travis@fir.im | |
# | |
# 使用方法: | |
# sh -c "$(curl -sSL https://gist.githubusercontent.com/trawor/5dda140dee86836b8e60/raw/turbo-qiniu.sh)" | |
echo "# 这个脚本理论上可以帮你获取任意域名的最快速的IP" | |
echo "# 获取IP列表的服务由 17ce.com 提供, 非常感谢有这么好的免费服务!" |
jscore: jscore.m | |
gcc -Wall -g -lobjc -o jscore jscore.m -framework JavaScriptCore -framework Foundation | |
clean: | |
rm -rf jscore *.o | |
#!/usr/bin/env ruby | |
# This script currently only works if you have your derived data in the default location. | |
# Get the workspace name to search for, or exit with code 1 if no value in envariable | |
xcodeWorkspacePath = ENV["XcodeWorkspacePath"] || exit(1) | |
projectName = xcodeWorkspacePath[%r{/(\w+)\.xcodeproj}, 1] | |
#Get the folders in derived data that could match the workspace | |
derived_data = File.expand_path("~/Library/Developer/Xcode/DerivedData") | |
# Glob out the files matching our project |
#import <Foundation/Foundation.h> | |
#include <objc/objc-api.h> | |
#include <objc/runtime.h> | |
#include <malloc/malloc.h> | |
#include <mach/mach.h> | |
@interface TEST : NSObject | |
@end | |
@implementation TEST |
If you do not install pip, you can try this link: http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
easy_install supervisor
mkdir -p /etc/supervisord/conf.d
#include <assert.h> | |
#include <roxlu/core/Utils.h> | |
#include <roxlu/core/Log.h> | |
#include "YUV420PGrabber.h" | |
YUV420PGrabber::YUV420PGrabber() | |
:y_prog(0) | |
,y_vert(0) | |
,y_frag(0) | |
,uv_prog(0) |
// USAGE: | |
// Call RestorationDefender.printViewControllerClassesThatAreProbablyNotRestorable() to print a list of view controllers that will probably not return from state restoration. | |
// Call RestorationDefender.crashWhenViewControllersDoNotImplementStateRestoration() to crash your app when a view controller appears without setting restorationIdentifier and restorationClass. | |
// Call RestorationDefender.shoutWhenViewControllersDoNotImplementStateRestoration() to print a big message when a view controller appears without setting restorationIdentifier and restorationClass. | |
import Foundation | |
private func objc_getClassList() -> [AnyClass] { | |
let expectedClassCount = objc_getClassList(nil, 0) | |
var allClasses = UnsafeMutablePointer<AnyClass?>.alloc(Int(expectedClassCount)) |
/* | |
--------------------------------------------------------------------------------------- | |
Obj-C Literal Dictionary Syntax - Multiple reasons for allowing nil values | |
Radar 19747372 | |
--------------------------------------------------------------------------------------- | |
The obj-c literal syntax for dictionaries does not allow nils. | |
@{key : nil}; // Exception (and compiler error) | |