Skip to content

Instantly share code, notes, and snippets.

@payliu
payliu / gitflow-breakdown.md
Created January 8, 2017 08:25 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

{
"name": "Nimbus",
"version": "1.2.1",
"license": "Apache License, Version 2.0",
"summary": "An iOS framework whose growth is bounded by O(documentation).",
"homepage": "http://nimbuskit.info",
"documentation_url": "http://latest.docs.nimbuskit.info",
"authors": {
"Jeff Verkoeyen": "[email protected]",
"Bubnov Slavik": "[email protected]",
@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
@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 / 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 / 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 / .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 / 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}'
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).'
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.