Skip to content

Instantly share code, notes, and snippets.

@payliu
payliu / dump.rb
Last active December 22, 2015 03:29
#!/usr/bin/env ruby
# class-dump frameworks
xcode_locations = [
"/Applications/Xcode.app/Contents/Frameworks/",
"/Applications/Xcode.app/Contents/OtherFrameworks/",
"/Applications/Xcode.app/Contents/PlugIns/IDEStructureNavigator.ideplugin/Contents/MacOS/IDEStructureNavigator"]
`rm -f output.txt && touch output.txt`
# Uncrustify 0.60
#
# General options
#
# The type of line endings
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input
Pod::Spec.new do |s|
s.name = 'OLCategoryHelper'
s.version = '0.0.5'
s.license = 'MIT License'
s.summary = 'A Category Library of Objective-C'
s.description = <<-DESC
OLCategoryHelper is a Library contain many helpful categoris.
To Exned Cocoa Framework or some popular Framework.
Jusy use specified category you need.
Pod::Spec.new do |s|
s.name = 'NSLogger-CocoaLumberjack-connector'
s.version = '1.5'
s.license = 'BSD'
s.summary = 'Bridges NSLogger and CocoaLumberjack.'
s.homepage = 'https://github.com/steipete/NSLogger-CocoaLumberjack-connector'
s.author = { 'Peter Steinberger' => '[email protected]' }
s.source = { :git => 'https://github.com/steipete/NSLogger-CocoaLumberjack-connector.git', :tag => '1.5' }
#s.source = { :git => 'https://github.com/steipete/NSLogger-CocoaLumberjack-connector.git', :commit => '3e3f3f22af' }
s.description = 'This is a bridge for the projects http://github.com/robbiehanson/CocoaLumberjack (A general purpose super-fast logging framework) and http://github.com/fpillet/NSLogger (send logs to a client app via network).'
@payliu
payliu / OLCustomCocoaLumberjack.podspec
Last active December 22, 2015 19:19
Custom Level and Formatter for CocoaLumberjack
Pod::Spec.new do |s|
s.name = 'OLCustomCocoaLumberjack'
s.version = '0.0.4'
s.license = 'MIT'
s.summary = 'Custom Level and Formatter for CocoaLumberjack.'
s.homepage = 'https://gist.github.com/payliu/6519088'
s.author = { 'Pay Liu' => '[email protected]' }
s.source = { :git => 'https://gist.github.com/6519088.git', :tag => '0.0.4' }
s.source_files = '*.{h,m}'
@payliu
payliu / .gitignore_global
Last active December 24, 2015 08:39
global git ignore. put it at ~/.gitignore_global (check others ignore, https://github.com/github/gitignore)
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@payliu
payliu / OLImperialMenu.podspec
Last active December 25, 2015 16:08
podspec for OLImperialMenu
Pod::Spec.new do |s|
s.name = 'OLImperialMenu'
s.version = '0.0.1'
s.license = 'MIT License'
s.summary = 'A floting menu on a View for iOS'
s.homepage = 'https://github.com/payliu/OLImperialMenu'
s.author = { 'Pay Liu' => '[email protected]',
'Josh' => '[email protected]' }
#s.source = { :git => 'https://github.com/payliu/OLImperialMenu.git', :tag => '0.0.1' }
@payliu
payliu / Recipe.xsd
Last active December 27, 2015 13:18
JAXB, xsd to java,
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:com:sample:Finance"
targetNamespace="urn:com:sample:Finance"
xmlns:prefixName="urn:com:sample:common"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- here, see: 'xmlns:prefixName' -->
<xsd:import schemaLocation="common.xsd" namespace="urn:com:sample:common"/> <!-- add import here -->
@payliu
payliu / Recipe.xsd
Last active December 27, 2015 13:18
JAXB, xsd to java with binding configuration file
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:com:sample:Finance"
targetNamespace="urn:com:sample:Finance"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:complexType name="Amount">
<xsd:sequence>
@payliu
payliu / lower-all-files.sh
Last active August 29, 2015 14:02
Mac: Rename all files names in a directory to lower case
for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done