brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| cwebp -pass 10 -mt -alpha_filter best -alpha_cleanup -m 6 -lossless | |
| What do all these arguments do? | |
| -pass 10 Determines the number of passes that will be performed on the image, maximum 10. More = longer processing time, but potentially smaller images. Yum. | |
| -mt Use multi-threading | |
| -alpha_filter best "predictive filtering for alpha plane", tries to optimize the alpha channel. Options are none, fast, and best. | |
| -m 6 Determines compression method. 0=fast, 6=slowest | |
| -lossless Makes this WebP lossless. Image produced will be 100% identical once decompressed. |
| ^(?!(NotificationManager|Timeline|SensorManager|Configs|libc-netbsd|art|stetho|Choreographer|CliptrayUtils|BubblePopupHelper|ViewRootImpl|libEGL|System.out|PhoneWindow)) |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #if($field.modifierStatic) | |
| static ## | |
| #end | |
| $field.type ## | |
| #set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))) | |
| #if ($field.boolean && $field.primitive) | |
| #if ($StringUtil.startsWithIgnoreCase($name, 'is')) | |
| #set($name = $StringUtil.decapitalize($name)) | |
| #else | |
| is## |
| import org.codehaus.groovy.runtime.StackTraceUtils | |
| int[] sdksAvailable() { | |
| def sdks = new ByteArrayOutputStream() | |
| exec { | |
| commandLine 'android', 'list' | |
| standardOutput = sdks | |
| } | |
| sdks = sdks | |
| // get the output |
| #! /usr/bin/python | |
| import argparse | |
| import os.path | |
| import glob | |
| parser = argparse.ArgumentParser( | |
| formatter_class=argparse.RawDescriptionHelpFormatter, | |
| description='''\ | |
| Replacing values in arrays.xml with @string/ links. Generates three new files for each locale: |
| #!/usr/bin/ruby | |
| # based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb | |
| # support comments and Converter such as "%@", "%d", "%0.1f"... | |
| # in your directory : ./main.rb Localizable.strings | |
| file = File.open("strings.xml", "w"); | |
| file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
| file.puts "<resources>" |
| #!/usr/bin/env ruby | |
| # gist: https://gist.github.com/3217498 | |
| # This script can be called from an Xcode 'Run Script' build phase at the | |
| # beginning of the build process, like this: | |
| # | |
| # ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
| # | |
| # This script should be placed in the same directory as your .xcodeproj |
| #!/bin/bash | |
| sp="/-\|" | |
| sc=0 | |
| spin() { | |
| printf "\b${sp:sc++:1}" | |
| ((sc==${#sp})) && sc=0 | |
| } | |
| endspin() { | |
| printf "\r" | |
| } |
from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html
First, add this to the project’s .git/info/attributes file:
*.strings diff=localizablestrings
Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file
Second, add this to your ~/.gitconfig file: