Introduction scratch虽然是开源的,但官方并没有开源全部的平台代码,而且scratch也是离线版的。 想要在自己的网站像官网一样 可以在线上传、在线加载、用户权限区等等之类的和服务器
Python实现简单crontab——在指定时间段内周期执行任务
类实现 import time class Cron: def __init__(self, time_range=””): self.time_tange = time_range def cycl
在移动端调试网页
在页面顶部引入vConsole <script src=”https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js”></scri
利用crontab几行代码实现自动备份网站和数据库
编写sh脚本,内容如下 mkdir -p /home/wwwroot/auto-backup # 导出指定数据库 mysqldump -uroot -proot blog > /home/www
推荐一个docker的镜像加速器
推荐使用DAOcloud的加速镜像(https://www.daocloud.io/mirror#accelerator-doc) 直接执行 curl -sSL https://get.daoclou
spark、scala、hadoop环境搭建笔记
hadoop-2.6.5 scala-2.10.5 spark-1.6.2 IDEA intellj intellj scala插件 SSH免密登录 ssh-keygen touch authoriz
python判断当前时间是否在某个时间段里
def in_time_range(ranges): now = time.strptime(time.strftime(“%H%M%S”),”%H%M%S”) ranges = ranges.spl
Python类方法的装饰器中传入类变量
之前我是这样写的 def my_decorator(arg): print(arg) def new_func(self): print(“my name is ” + arg) return new
mongoDB修改字段类型:string转decimal
将test表中的num_string字段从String转换到decimal: db.test.find().forEach(function(x){x.num_string=NumberDecimal
Intellij IDEA+spark开发环境搭建笔记
准备工具:jdk1.8 Intellij IDEA scala2.10.5 hadoop2.6.5 spark1.6.2 IDEA配置步骤: 1.添加JDK1.8 2.安装scala插件 3.