Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

ElasticSearch - 初试Query DSL

Posted on 2018-05-29   |   In ElasticSearch
例子解析GET /bank/_search{ "query": { "match_all": {} }, "sort": { "balance&q ...
Read more »

golang - websocket - AcceptKey计算

Posted on 2018-05-25   |   In Golang
源码https://github.com/gorilla/websocket/blob/23059f29570f0e13fca80ef6aea0f04c11daaa4d/util.go var keyGUID = []byte("258EAFA5-E914-47DA-95CA-C5AB0DC85B1 ...
Read more »

Vue - 自制bus

Posted on 2018-05-23   |   In vue
vue 自己带了一个简易的 pub/sub 工具 bus对于简单的数据通信来说这已经足够使用.vuex 这种相对来说标准化更高, 对于  大型团队和复杂项目来使用相对才能  看出好处 自制一个不管 redux/nodejs 还是啥,这种消极机制在开发中经常会看到. 消息队列 redis 反 ...
Read more »

golang - base64简单解读

Posted on 2018-05-20   |   In Golang
前端同学对base64的认识,往往是 图片可以用base64的方式来显示. 其实我们前后端最常用的jwt验证也是base64这种编码的. 今天就单独说base64编码本身. 声明base64编码我们要看的是他的过程和标准.下面举例代码非js,但基本思路都是一样的,因为标准就一个. 上代码const ...
Read more »

Element - mixin - emitter

Posted on 2018-05-10   |   In vue
function broadcast(componentName, eventName, params) { // 所有子组件遍历 this.$children.forEach(child => { var name = child.$options.compon ...
Read more »

ElasticSearch - getting started

Posted on 2018-05-10   |   In ElasticSearch
getting startedes中的index相当于 RMDB 中的库的概念,里面可以存很多的表(type),表里可以存储数据(document) curl 'localhost:9200/books/' -X PUT // 创建所以PUT ...
Read more »

elementUI 组件解读 button

Posted on 2018-04-24   |   In vue
源码<template>// 根据type不同引入不同的class <button class="el-button" @click="handleClick" :disabled="buttonDisabled || loading" :autofocu ...
Read more »

golang-fileExists

Posted on 2018-03-23   |   In Golang
检查文件是否存在demo 代码package mainimport ( "fmt" "os")func fileExists(path string) bool { fileInfo, err := os.Stat(path) fmt.Println(fileInfo.IsDir(), f ...
Read more »

NodeJS 分层思考

Posted on 2018-03-08   |   In Node
思考 在node里如何对代码进行分层M.V.C背景最近为了学习和实践感兴趣的技术,换了一份比较辛苦的工作,待遇也没有涨,但幸好技术上能够比较多的沉淀.用node来接入现有的项目(PHP). DB - 由于现有数据库已经建立好了,如果用ORM可能会导致一些问题. 基本没有Model层的概念了View ...
Read more »

不一样的拥抱变化

Posted on 2017-12-25   |   In PM
“拥抱变化”这个词已经被滥用太多年了.到底什么样的变化需要拥抱,什么样的变化需要舍弃? 让我们来简单的思考一下… 软件项目管理往往区别于我们常说的项目管理.往往由于软件项目内容的特殊,流程的复杂,领域的专属 回想一下传统开发中我们怎么做的 - 项目计划的足够完整 - 单线程工作流 - 多部门交叉沟 ...
Read more »
<i class="fa fa-angle-left"></i>1…789…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