Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

golang - grpc

Posted on 2017-11-20   |   In Golang
grpc - HWgrpc优势: protocol buffer 传输提交小,解析速度快 http2 支持 跨语言通信支持 service - proto 定义service req/ res 实体定义 syntax = "proto3";package helloworld;// The gr ...
Read more »

golang - youdao.dict

Posted on 2017-11-13   |   In Golang
查词小工具 获取翻译解释 获取发音(如果是英文) codepackage mainimport ( "encoding/json" "fmt" "io" "log" "net/http" "net/url" "os" "os/exec" "strings" "sync")// 翻译查询结果结构ty ...
Read more »

golang-simple JWT

Posted on 2017-11-09   |   In Golang
极简版本的JWT阅读具体RFC文档,获取大概内容https://tools.ietf.org/html/rfc7519 抽取最核心部分 jwt的组成 jwt的组成部分的核心算法 jwt的检验 尝试实现 此版本hardcode了 算法为HS256 package mainimport ( "cry ...
Read more »

golang - ssh tool

Posted on 2017-11-08   |   In Golang
ssh 小工具Why之前做的 api 文档工具,因为 jekins 没有做脚本上的操作,只是单纯的复制.所以每次更新都有手动上去执行文档生成的命令 How通过用户名密码,建立 ssh 连接.执行一串命令,获取输出看是否执行成功 Codepackage mainimport ( "bytes" "fm ...
Read more »

golang - ls

Posted on 2017-11-07   |   In Golang
Golang实现ls命令基本功能v1 同步版本package mainimport ( "fmt" "io/ioutil" "log" "math" "os" "strings" "unicode/utf8" "github.com/fatih/color" "golang.org/x/crypto ...
Read more »

Nginx - proxy

Posted on 2017-09-05   |   In Nginx
Why 新工作后台是php… 前后端没有分离,基本都是后端直推出来的页面 开发流程耦合严重 What 新项目中准备推进前后分离 最近在玩VUE How 从nginx 入手 特定路由访问本地某端口的服务 其他返回index server { listen 9000; se ...
Read more »

docker-compose-nodejs个人开发环境

Posted on 2017-07-28   |   In Docker
这次准备用docker-compose来搭建基本的node 前端开发环境 基本目录结构λ lltotal 8-rwxr-xr-x 1 vincent staff 410B Jul 28 13:47 docker-compose.ymldrwxr-xr-x 21 vincent staf ...
Read more »

docker-nodejs

Posted on 2017-07-28   |   In Docker
初识Docker - 搭建nodejs前端环境 基础nodejs代码 https://github.com/dreambo8563/koaLearning这个项目的代码是我自己学习基本Koa的时候随便写的,就是几个简单接口和基本的中间件应用 建立 DockerfileFROM node:alpine ...
Read more »

Functor-定义

Posted on 2017-06-12   |   In Tools
定义Functor 是一个一直以来没时间彻底弄清的一个概念,毕竟想好好学习下FP,所以还是要肯下来 More generally, the idea of mapping a function over each element of a data structure isn’t specific ...
Read more »

Actor - FSM

Posted on 2017-05-11   |   In Scala , Akka
Source Codepackage sample.redeliveryimport akka.actor._import scala.concurrent.duration._import java.util.concurrent.ThreadLocalRandomimport java.util ...
Read more »
<i class="fa fa-angle-left"></i>1…91011…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