2.Spark for REST APIs: Using Spark, Lombok and Jackson to reduce Java boilerplate
http://sparkjava.com/tutorials/sql2o-database
3.connect the spark to the sql
http://sparkjava.com/tutorials/sql2o-database
Can’t locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.18/SVN
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.18/auto/SVN
pull.sh
和push.sh
,例如:#!/bin/sh
cd "$REPO"
git stash
git svn fetch
git svn rebase
git stash apply
#!/bin/sh
cd "$REPO"
git stash
git svn dcommit
git stash apply
Preferences->Custom Actions
,新建pull与push,选择这两个脚本。以后打开项目后,就可以在Actions->Custom Actions
下找到你添加的这两个Action。int dp = (int) (getResources().getDimension(R.dimen.test) / getResources().getDisplayMetrics().density)