Fetch the following csv files and get top 10 rating movies.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx | |
# COPY nginx.conf /etc/nginx/conf.d/default.conf | |
ADD run-nginx.sh . | |
CMD ["bash", "run-nginx.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[repositories] | |
#本地源 | |
local | |
# repox-ivy: http://repox.gtan.com:8078/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] | |
# repox-maven: http://repox.gtan.com:8078/ | |
aliyun: http://maven.aliyun.com/nexus/content/groups/public/ | |
#添加国外源备用 | |
typesafe-ivy: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] | |
jboss-repository: http://repository.jboss.org/nexus/content/groups/public/ | |
sbt: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Obj(val elems: (String, json)*) derives Eql | |
case class Arr(val elems: json*) | |
type json = Number | String | Obj | Arr | |
val s: json = Obj("a" -> 3, "b" -> "cd", "ar" -> Arr(1, "abc")) | |
println(s) |
一个好的远程调用服务(PRC)应该支持以下特性
- 服务发现
- 负载均衡(可配置策略)
- 限流(熔断)
- 鉴权
- 调用策略(重试,降级)
- 分布式追踪与性能监控
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(name: "996.ICU", owner: "996icu") { | |
id | |
issues(first: 50) { | |
totalCount | |
nodes { | |
id | |
title | |
body | |
bodyText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn dependency:tree -Dverbose -Dincludes=com.google.guava |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//const tpl = makeTemplate('hello ${name}') | |
//const name = 'world'; | |
//tpl({name}); | |
const makeTemplate = (templateString) => { | |
return (templateData) => new Function(`{${Object.keys(templateData).join(',')}}`, 'return `' + templateString + '`')(templateData); | |
} |