记录 30 seconds of code 项目个人觉得中有价值的片段或者小技巧(二)
DF系列1、防抖函数,限制高频触发jsconstdebounce(fn,ms0)lettimeoutId;returnfunction(...args)clearTimeout(timeoutId);timeoutIdsetTimeout(()fn.apply(this,args),ms);
Easter79 Easter79
4年前
sqoop job用法
创建JOB sqoopjobDmapreduce.job.queuename'root.bi'creatext\_test\_jobimportconnectjdbc:mysql://xxxx:3306/test?tinyInt1isBitfalseusernamexxxpasswordxxx
风花雪月 风花雪月
2年前
简单的GRU实例代码
importnumpyasnp定义sigmoid函数defsigmoid(x):return1/(1np.exp(x))classRNN:definit(self,inputsize,hiddensize,outputsize):设定超参数self.in
Stella981 Stella981
4年前
SpringBoot使用logback自定义配置时遇到的坑
问题描述SpringBoot项目使用logback自定义配置后,会在/tmp/目录下生成spring.log的文件(如下图所示)。!(https://oscimg.oschina.net/oscnet/a876c5154d152b266a24066a444a685aede.png)解决方案通过各种资料的搜索,最终发现问题的所在(lo
Wesley13 Wesley13
4年前
Ubuntu 下搭建 LAMP 环境
1.安装1.1.MySQL  $sudoaptgetinstallmysqlservermysqlclient    过程中输入root密码  $sudonetstattanp|grepmysql1.2.Apache2  $sudoaptget
Stella981 Stella981
4年前
Linux epoll版定时器
ifndef__MYTIMER_H_define__MYTIMER_H_/高并发场景下的定时器///定时器回调函数typedefvoid(TimerCallback)(intfd,void
Wesley13 Wesley13
4年前
C++ 11
std::terminate(); set_terminate,产生异常会调用该函数,默认是调用abortvoidhandler(){cout<<"error~~~~~~~~~~~~~~~~~~";}std::set_terminate(handler);//默认调用
Wesley13 Wesley13
4年前
ubuntu安装msql5.7
1.执行以下命令安装,一路按Y即可sudoaptgetinstallmysqlserver sudoaptinstallmysqlclient sudoaptinstalllibmysqlclientdev2.检查mysql的
Stella981 Stella981
4年前
Kendo UI常用示例汇总(十九)
通过70多个可自定义的UI组件,KendoUIProfessional可以创建数据丰富的桌面、平板和移动Web应用程序。通过响应式的布局、强大的数据绑定、跨浏览器兼容性和即时使用的主题,KendoUIProfessional将开发时间加快了50%。KendoUIProfessional目前最新提供KendoUIforjQuery(h
Stella981 Stella981
4年前
Phalcon7发布1.1.0版
合并Phalcon\Mvc\Model\Validator\到Phalcon\Validation\Validator\统一验证类。优化表单类,更加方便的创建新的表单元素,并支持转换为数组,提供给前端JS动态生成表单。内置支持HMVC。强化Model,更加方便的自定义字段和映射字段。完善了文档。<?php