Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

第一个npm包

Posted on 2017-03-12   |   In React
这是我自己发布的第一个npm 包mport {Observable} from 'rxjs/Observable';import {ReplaySubject} from 'rxjs/ReplaySubject';import {Subject ...
Read more »

AKKA中的mat

Posted on 2017-02-19   |   In Scala , Akka
Remember those mysterious Mat type parameters on Source[+Out, +Mat], Flow[-In, +Out, +Mat]and Sink[-In, +Mat]? They represent the type of values thes ...
Read more »

Defining and running streams基础

Posted on 2017-02-19   |   In Scala , Akka
7.5.2 Defining and running streamsLinear processing pipelines can be expressed in Akka Streams using the following core abstractions: Source A proces ...
Read more »

Play - ActionFunction

Posted on 2017-02-19   |   In Scala , Play
ActionFunction 其实是对request的处理 自定义请求类型 提取或者处理请求的各种参数 https://www.playframework.com/documentation/2.5.x/ScalaActionsComposition import play.api.mvc._cl ...
Read more »

Scala - 基本语法

Posted on 2017-02-19   |   In Scala
block of code as a param— ex:if we have a function likedef example(name:string){ var char = name[0] char+'good' }={}the func ...
Read more »

Scala - Option - collect

Posted on 2017-02-19   |   In Scala
Option 操作中的collectdef onlyHttps[A](action: Action[A]) = Action.async(action.parser) { request => request.headers.get("X-Forwarded-Proto").col ...
Read more »

Scala - Currying

Posted on 2017-02-19   |   In Scala
Currying多个参数,可以分步调用每次调用会返回一个func,直到你传入最后一个参数 import scala.collection.immutable.{Map => Map_, _} object Currying { val messages = ...
Read more »

Scala - Pattern Match - @

Posted on 2017-02-19   |   In Scala
that match{ case p @ Person(_, age) if p != bill => age case Person(_, age) => age - 15 case _ => println("Not a person")} 如果直接 ...
Read more »

Scala - Seq

Posted on 2017-02-19   |   In Scala
First of all, let me just point to the fact that in Scala, when we think List we mean Seq.这个需要进一步多看一些文章.来说明seq的优势.以及list等其他集合类型的适用场景 foreachval seq =S ...
Read more »

basic redis

Posted on 2016-11-18   |   In Node
redis 基础 client.incr(‘next:user:id’, function(id){})// 自增 next:user:id字段,callback里拿到自增后的值 client.set(‘user:’ + username, userid);// 设置普通的k/v client ...
Read more »
<i class="fa fa-angle-left"></i>1…121314…29<i class="fa fa-angle-right"></i>
Vincent Guo

Vincent Guo

the blog to remeber all things about code

290 posts
44 categories
103 tags
RSS
github twitter facebook google weibo
Links
  • KunLin
  • Rx Introduction
  • 三哥
  • 元龙
© 2024 Vincent Guo
Powered by Hexo
Theme - NexT.Mist