Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

RN - router-flux

Posted on 2017-04-18   |   In React , React-Native
之前刚写过一个RN的navigation入门,通过写了几个简单的页面组件和导航跳转,发现了还是需要一个比较强大的导航组件. 所以这次选择了react-native-router-flux Mini-Tutorialimport { Router, Scene } from 're ...
Read more »

RN - Navigator

Posted on 2017-04-12   |   In React , React-Native
入门感受 用 react-native init 创建项目很方便 (关键是 mac) 基本 react 知识可以直接应用 组件库缺乏 inline style 第一个小难题 Navigator基本组件直接写 react 组件就好了,但都是单独个体,抛去组件样式类型的不完善外,就是没有 react- ...
Read more »

重新思考react - 返璞归真

Posted on 2017-04-01   |   In React
用了React应该有半年多了吧,但感觉用了好几年一样. 接触生态圈: react react-router fetch redux antd bootsrtap weui 其他react组件 echart css webapck什么不算在react 生态圈里 回想记得刚开始接触的时候,看过各种视 ...
Read more »

Akka - 打包部署

Posted on 2017-03-29   |   In Scala , Akka
原文地址 一直不知道play那个打包怎么搞的,这次发现根源了 基本步骤 声明插件project/plugins.sbt 下 添加 addSbtPlugin(“com.typesafe.sbt” % “sbt-native-packager” % “1.0.0-RC1”) 配置插件build.sbt ...
Read more »

slick - 返回值包含多个相关数据

Posted on 2017-03-28   |   In Scala , Slick
实际问题,原始sql 一般可以这么干 select min(ts), max(ts) from message where content like ‘%read%’ 我们遇到一个需求也是类似的不过 需要返回count(1) 方式如下 val aa = orders. filter(_ ...
Read more »

slick - 条件插入

Posted on 2017-03-28   |   In Scala , Slick
书上给了例子,插入前可以根据条件来选择是否插入这个数据,但书上用的是 String常量,不能直接拿来实际用. 好处就是一条sql 不好的么,就是有点麻烦 两次查询完成插入// solution with twice query def exists(item: Item) = o ...
Read more »

git remote branch 删除后依然可见

Posted on 2017-03-23   |   In Tools
今天遇到一个问题,同事删除远程分支后,我用 git branch -a 仍然能够看到 git remote prune origin Doc: pruneDeletes all stale remote-tracking branches under . These stale branches ...
Read more »

first try with slick

Posted on 2017-03-22   |   In Scala , Slick
package初期找到的书或者官网教程基本都是基于H2的,所以小白我开始Hello World路线 "com.typesafe.slick" %% "slick" % "3.2.0", "com.h2database" % "h2" % "1.4.194", "org.slf4j" % "slf ...
Read more »

Success vs Success

Posted on 2017-03-18   |   In Scala , Akka
这是在学习的代码中遇到的一个问题 这里的Success 是在路由中对 Future 用了onComplete源码如下:这是Akka HTTP里的一个directive,用来处理Future的这里的Success 是对 Try[T]的一种情况def onComplete[T](future: ⇒ Fu ...
Read more »

how to install postgres on Mac

Posted on 2017-03-14
安装Postgres1) This is the easiest part, simply $ brew install postgres 2) this step is not obvious but you can’t move on without it (would be nice if ...
Read more »
<i class="fa fa-angle-left"></i>1…111213…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