摘要: Date.prototype.format = function (fmt) { var o = { 'M+': this.getMonth() + 1, // 月份 'd+': this.getDate(), // 日 'h+': this.getHours(), // 小时 'm+': this 阅读全文
posted @ 2020-06-02 11:13 shubin 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 安装Chart.Js npm install vue-chartjs chart.js --save 引用Chart.Js import Chart from 'chart.js' 使用Chart.Js <template> <section class='content'> <div class= 阅读全文
posted @ 2020-06-02 11:03 shubin 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: 进制转换 阅读全文
posted @ 2019-03-21 20:48 shubin 阅读(330) 评论(0) 推荐(0) 编辑
摘要: gpio定义 RX和TX为D9和D10 阅读全文
posted @ 2019-02-02 22:53 shubin 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1.更换Python版本 方法一:可采用PPA的方式安装 由于在新版的homeassistant当中需要使用python3.5.3及以后的版本,但由于apt源中只包含3.5.2的版本,所以需要升级到python3.6。 具体更换方式: sudo add-apt-repository ppa:jona 阅读全文
posted @ 2018-12-29 13:30 shubin 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 1.System入门教程:命令篇 - 阮一峰 阅读全文
posted @ 2017-11-20 19:28 shubin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Supervisord是用Python实现的一款非常实用的进程管理工具。supervisord会帮你把管理的应用程序转成daemon程序,而且可以方便的通过命令开启、关闭、重启等操作,而且它管理的进程一旦崩溃会自动重启,这样就可以保证程序执行中断后的情况下有自我修复的功能。 介绍文章: 1.安装和详 阅读全文
posted @ 2017-11-20 19:04 shubin 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 在安装Android Studio 3.0的时候出现了这个问题。查阅了许多资料都没有找到原因。到最后才发现,Android Studio默认https是不走代理的,只要勾选上https的代理就顺利的安装了Android Studio。 阅读全文
posted @ 2017-11-01 21:27 shubin 阅读(2406) 评论(0) 推荐(0) 编辑
摘要: 前言: 树莓派有多种联网的方式,通过有线网或者通过无线网。通过有线网连接是比较简单的,在开启dhcp的路由器下,直接插上网线就可以联网,本文介绍树莓派无线联网的方式。再没联网的情况下,如果没有屏幕等外设,通过串口连接是一种比较简单有效的方式。 扫描WIFI: 使用如下命令可以扫描附近的无线网: 扫描 阅读全文
posted @ 2017-10-28 11:49 shubin 阅读(48696) 评论(0) 推荐(2) 编辑
摘要: sigmoid函数求导过程: 阅读全文
posted @ 2017-09-12 20:26 shubin 阅读(166) 评论(0) 推荐(0) 编辑