Skip to content

Instantly share code, notes, and snippets.

@xiangyuan
xiangyuan / main.rb
Created March 14, 2014 03:20 — forked from farmisen/main.rb
require 'rubygems'
require 'json'
require 'chunky_png'
PLUTIL = '/usr/bin/plutil'
TEXTUREPACKER = '/usr/local/bin/TexturePacker'
dir = File.join(ARGV[0], '*plist')
out_dir = File.join(Dir.pwd , ARGV[1])
tmp_dir = "/tmp"
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
#'-Wall',
#'-Wextra',
#'-Wno-long-long',
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestCaseRun.h
SENTEST_EXPORT NSString * const SenTestCaseDidStartNotification;
SENTEST_EXPORT NSString * const SenTestCaseDidStopNotification;
SENTEST_EXPORT NSString * const SenTestCaseDidFailNotification;
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestDistributedNotifier.h
SENTEST_EXPORT NSString * const SenTestNotificationIdentifierKey;
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestSuiteRun.h
SENTEST_EXPORT NSString * const SenTestSuiteDidStartNotification;
// The purpose of this gist is to provide examples of many real life date computations
// This is uploaded as a gist so that it can be copy and pasted into either a OS X or
// iOS project. You can either take it all "[Cmd]+[A], [Cmd]+[C]" or just a small piece.
// The results are fairly well formattes as log output and I recommend that you run this
// code to see the actual results yourself. Change some of the values and see what happens.
#pragma mark - Setup
NSString *line = @"–––––––––––––––––––––––––––––––––––––––––––––––––––––––";
@xiangyuan
xiangyuan / FRLayeredNavigationController.podspec
Created December 24, 2013 04:45
FRLayeredNavigationController
Pod::Spec.new do |s|
s.name = 'FRLayeredNavigationController'
s.version = '0.4.4-master'
s.license = 'Modified BSD'
s.summary = 'Layered navigation controller for hierarchical iPad apps.'
s.homepage = 'https://github.com/weissi/FRLayeredNavigationController'
s.author = { 'Johannes Weiß' => '[email protected]' }
s.source = { :git => 'https://github.com/weissi/FRLayeredNavigationController.git', :branch => 'master' }
Pod::Spec.new do |s|
s.name = "IQKeyboardManager"
s.version = "1.2"
s.summary = "Keyboard TextField Manager. We called it 'IQKeyboardManager."
s.description = 'Often while developing an app, We ran into an issues where the iPhone UIKeyboard slide up and cover the UITextField/UITextView.'
s.homepage = "https://github.com/hackiftekhar/IQKeyboardManager"
s.screenshots = "https://github.com/hackiftekhar/IQKeyboardManager/blob/master/KeyboardTextFieldDemo/Screenshot/IQKeyboardManagerScreenshot.png"
s.license = 'MIT'
s.author = { "hackiftekhar" => "[email protected]" }
/*
File: KeychainItemWrapper.h
Abstract:
Objective-C wrapper for accessing a single keychain item.
Version: 1.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
Pod::Spec.new do |s|
s.name = "VRGCalendarView"
s.version = "0.0.1"
s.summary = "Vurig Calendar."
s.description = <<-DESC
A calendar view for iOS.
Easy to use, simple, clean.
@xiangyuan
xiangyuan / api_simulator_data
Last active December 29, 2015 09:49
api接口定义 临时使用
#1、应用推荐访问地址
# 请求头添加 "Accept":"application/json"
url
http://192.168.22.203/api/recommendApp/[:system]
request:
GET
params
将:system处替换为 ios | android