最少有三个长期分支
- master: 用于生产环境部署
- testing: 用于测试环境测试
- dev: 用于日常开发
有一些临时分支
###struct
| /** | |
| A LazyList is strict on its head, but lazy on its tail. | |
| */ | |
| abstract class LazyList[+A] { | |
| def first : A ; | |
| def rest : LazyList[A] ; | |
| /** | |
| *>>: evaluates right-to-left, and it is *strict* on its second argument. |
| //private[this] | |
| class T{private val name = "jack";private[this] val age = 28; def say = {val t = new T; t.age+t.name}} | |
| class Test[-T,+U] { private[this] var s:U=_; private[this]var t:T=_;def say(a:T):U={ def info(b:T):T = t; s}} | |
| //lazy | |
| def say(a: =>Int) = {a;lazy val b= {println(2);a};b;b} | |
| say({println(3);1}) |
| Other variables you can define as follows: | |
| txtgrn=$(tput setaf 2) # Green | |
| txtylw=$(tput setaf 3) # Yellow | |
| txtblu=$(tput setaf 4) # Blue | |
| txtpur=$(tput setaf 5) # Purple | |
| txtcyn=$(tput setaf 6) # Cyan | |
| txtwht=$(tput setaf 7) # White | |
| txtrst=$(tput sgr0) # Text reset. | |
| Following are the tput details further: |
#####准备
apktool:http://code.google.com/p/android-apktool/downloads/list
Download apktool-install-linux-* file
Download apktool-* file
dex2jar :http://code.google.com/p/dex2jar/downloads/list (资源提取工具,提取class)
jad :http://www.varaneckas.com/jad/ (class->java)
#####流程
| class CC[T] { def unapply(a:Any):Option[T] = Some(a.asInstanceOf[T]) } | |
| object M extends CC[Map[String, Any]] | |
| object L extends CC[List[Any]] | |
| object S extends CC[String] | |
| object D extends CC[Double] | |
| object B extends CC[Boolean] | |
| for { | |
| Some(M(map)) <- List(JSON.parseFull(jsonString)) |
| import scala.util.control.Breaks._ | |
| object Continued extends scala.util.control.Breaks {} | |
| import Continued.{break=>continue, breakable=>continuing} | |
| // Now every time you need it: | |
| breakable{ for (i <- 1 to 10) continuing { | |
| if ((i%2)==0) continue | |
| if (i>3) break | |
| println(i) | |
| }} |
| # ~/.gitconfig: git-config(1) - Git configuration | |
| # vim: ft=gitconfig | |
| [apply] | |
| # Detect whitespace errors when applying a patch | |
| whitespace = fix | |
| [interactive] | |
| diffFilter = diffr | |
| [core] |