Sketch-Html-TfApr 9, 2018前端自动生成看了篇文章 很有意思 如何用深度学习将前端设计模型自动转换为代码? https://juejin.im/post/5ab3826cf265da2391480755但是这个是基于像素的,可以改为前端更通用的基于设计稿的。 然后就 发现了这个,从sketc转html https://github.com/xinyu198736/sketch-to-html 不太完善。但是可以取其...more
GeniusApr 2, 2018有意思的jstenserflow.js javascript tenserflow看着还是挺开心的,跟自己的专业有点联系了。信息论 机器学习 压缩感知一堆都可以弄了。 https://juejin.im/post/5abf1ad8f265da238059c474 https://js.tensorflow.org/ ios 支持 PWA 了 https://mp.weixin.qq.com...more
PhantomjsMar 26, 2018phantomjs 生成月报私募基金月报很多图表,有生成pdf这个需求。之前认为前端生成pdf只能采取截图的方式,pdf上的文字不能选择。后来发现了phantomjs,很方便,可以识别出文字。 安装 http://phantomjs.org/quick-start.html官网下载,编辑 ./zshrc 增加 alias phantomjs=’~/PATH/TO/phantomjs’ 使用pha...more
DockerMar 26, 2018dockerfile node1234567FROM mhart/alpine-node:8WORKDIR /appCOPY . .RUN npm installRUN npm run buildEXPOSE 8080CMD npm run start...more
Zsh环境变量Mar 24, 2018Zsh 添加环境变量给 Linux/Unix 系统增加环境变量,是使用 export 命令。 为了永久性生效,则需要考虑加入到登录的 profile中。 这个时候要考虑你当前使用的 shell,比如默认的 bash shell,则可编辑用户根目录下的隐藏文件 ./bash_profile 对于zsh 而言,需要编辑 .zshrc 这个文件 vi ~/.zshrc 在最后面加上一句 export P...more
MongolearnMar 24, 2018mongoose简单例子http://mongoosejs.com/docs/index.html 123456789$ npm install mongoosevar mongoose = require('mongoose');mongoose.connect('mongodb://localhost/test');var db = mongoose.connection;db.on('err...more
DdMar 13, 2018大纲Java 平台 后端开发基本规范 后端基础设施介绍 雪球 Microservices 后端项目 QuickStart 后端开发基本规范更多请参见:后端开发规范 开发环境 JVM:Java 8 、G1 GC Dev Set:devtool-settings Git:GitLab、GIT 分支规范 Coding Guidelines:Sonar、Alibaba P3C 代码组织Maven 使...more
日记Mar 13, 2018#kubectl配置 https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/ http://kubernetes.kansea.com/docs/user-guide/quick-start/ export KUBECONFIG=/home/user/.bluemix/p...more
Jquery-ValidateMar 7, 2018jquery validation http://www.runoob.com/jquery/jquery-plugin-validate.html https://github.com/jquery-validation/jquery-validation 很好用,form 提交用 input type=submit ...more
BluemixMar 2, 2018国内登录失败bx login 提示 timeout 解决方法export http_proxy='127.0.0.1:1087' 即可开启termital代理 最简单的办法是修改DNS, ...more
计划Feb 28, 2018历史blog转为md文件先都更新到hexo 完成 123456789101112131415blog.map((item, key) => { var path = 'source/_posts/' + item.time + item.title + '.md' var head = '---\ntitle: ' + item.title + '\ndate: ' + ite...more
日记Feb 27, 2018购买了免流加速"local_address": "127.0.0.1", "local_port": 1080, "timeout": 300, "workers": 1, "server_port": 80, "password": "2F9t38...more
BluemixFeb 27, 2018获取集群的访问权限先决条件要获取集群的访问权,请下载和安装一些 CLI 工具 和 IBM Cloud Container Service 插件。 Download the IBM Cloud CLI. Download the Kubernetes CLI. Install the container service plugin. bx plugin install container...more
日记Feb 26, 2018单词自动记录https://hectorguo.com/zh/save-words-in-dictionary/ 将单词释义保存到文件下FILE=$HOME/blog/source/words/index.md 格式化单词释义(把单词,音标,解释分离开)RESULT=$(echo -e $1 | sed -E 's#([a-zA-Z]+) (\|[^\|]+\|)(.*)#\#\#\ ...more