Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| import java.io.{ FileOutputStream, File } | |
| import scala.io.Source | |
| import scala.util.matching.Regex | |
| object UpdateCopyrightHeaders extends App { | |
| val encoding = "utf-8" | |
| val copyrightLines: Seq[String] = "Copyright (C) 1894-2014 Example Corp. <http://www.example.com>".split("\n") | |
| val srcDir = new File("src/") | |
| def updateCopyright(file: File): Unit = { |
| trait Unique { | |
| val id: String | |
| } | |
| /** | |
| * Abstraction over a standard "Indexed" table. | |
| */ | |
| trait CrudComponent{ this: Profile => | |
| import profile.simple._ |
| #!/sbin/runscript | |
| # GitLab init script for Gentoo Linux | |
| # see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md | |
| GITLAB_BASE=/home/gitlab/gitlab | |
| GITLAB_USER=gitlab | |
| depend() { | |
| need net mysql redis | |
| } |
| // some data to interpolate | |
| val attributes = Attributes("a"->"data wins", "b" -> "data loses") | |
| val attributeValue = "one" | |
| val nodes = Group(Elem("hi", Attributes()), Text(" there")) | |
| // Scala 2.10's pluggable string interpolation | |
| // Here xml"" means: create an Anti-XML element | |
| val xml = xml"""<foo a="overridden" $attributes b="literal wins">blie <b attr=$attributeValue/> bla $nodes</foo>""" |
| ${retIt:newType(java.lang.Iterable)}<${iterable_type}> ${name:newName(retIt)} = ${itbls:newType(com.google.common.collect.Iterables)}.filter(${iterable}, new ${pred:newType(com.google.common.base.Predicate)}<${iterable_type}>() { | |
| @Override public boolean apply(${iterable_type} ${input}) { | |
| return ${false}; | |
| } | |
| }); |
| import com.google.common.util.concurrent.*; | |
| import org.junit.After; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.CountDownLatch; | |
| import java.util.concurrent.Executors; |
| import sbt._ | |
| import Keys._ | |
| import java.util.jar.Attributes.Name._ | |
| import sbt.Defaults._ | |
| import sbt.Package.ManifestAttributes | |
| import sbt.Fork.ForkJava | |
| object Bundle extends Plugin { |
| package code.webapp | |
| import scala.collection.JavaConversions.seqAsJavaList | |
| import org.apache.wicket.behavior.AttributeAppender | |
| import org.apache.wicket.datetime.markup.html.form.DateTextField | |
| import org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator | |
| import org.apache.wicket.markup.html.basic.{ MultiLineLabel, Label } | |
| import org.apache.wicket.markup.html.form.{ TextField, TextArea, SubmitLink, RadioGroup, Radio, PasswordTextField, FormComponent, Form, DropDownChoice, CheckGroup, Button } | |
| import org.apache.wicket.markup.html.link.{ Link, BookmarkablePageLink } | |
| import org.apache.wicket.markup.html.link.ExternalLink |