- Java 1.8 # javac -version
- Scala 2.11.* / 2.12 # scala -version
- SBT http://www.codebind.com/linux-tutorials/install-scala-sbt-java-ubuntu-16-04/
https://www.scala-sbt.org/download.html?_ga=2.245160197.1010337534.1536233338-1561563464.1536228361
https://www.scala-sbt.org/download.html?_ga=2.245160197.1010337534.1536233338-1561563464.1536228361
select a.id from TableA a \ | |
JOIN TableB b ON a.id=b.tablea_id \ | |
JOIN TableC AS c ON b.tableb_id=c.id \ | |
where c.name IN ('java','python') \ | |
group by a.id \ | |
having count(distinct c.name)=2; |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" | |
) |
https://rakyll.org/pprof-ui/ | |
https://github.com/prashantv/go_profiling_talk | |
https://github.com/golang/go/wiki/Performance | |
https://docs.google.com/presentation/d/1n6bse0JifemG7yve0Bb0ZAC-IWhTQjCNAclblnn2ANY/present?slide=id.g3a3e2af65_029 | |
https://www.youtube.com/watch?v=N3PWzBeLX2M | |
https://jvns.ca/blog/2017/09/24/profiling-go-with-pprof/ | |
https://flaviocopes.com/golang-profiling/ | |
https://medium.com/@hackintoshrao/daily-code-optimization-using-benchmarks-and-profiling-in-golang-gophercon-india-2016-talk-874c8b4dc3c5 | |
sudo docker pull nsqio/nsq | |
#first time | |
sudo docker run --name lookupd -p 4160:4160 -p 4161:4161 nsqio/nsq /nsqlookupd | |
# run as background | |
sudo docker run -p 4160:4160 -p 4161:4161 nsqio/nsq /nsqlookupd | |
sudo docker pull nsqio/nsq | |
sudo docker run --name nsqd -p 4150:4150 -p 4151:4151 \ | |
nsqio/nsq /nsqd \ |
'.source.go': | |
'ginkgo snipet': | |
'prefix': 'ginkgo' | |
'body': """var _ = Describe("Describe", func() { | |
Describe("Main Describe", func() { | |
Context("Context", func() { | |
It("Scenario", func() { | |
By("Test By") | |
Expect("test goginko").To(Equal("test goginko")) | |
}) |
package main | |
import ( | |
"flag" | |
"fmt" | |
"time" | |
) | |
// Fake a long and difficult work. | |
func DoWork() { |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Book struct { | |
ID int | |
Title string |