上一页 1 2 3 4 5 6 7 8 ··· 57 下一页

2019年1月14日

mysql

摘要: 1、mysql更改原来table的一列的默认值:(原来的数据不会改变) alter table user alter column avatar set default 'http://119.23.231.141/mongo_img/cat.jpg' 2、mysql增加一列 alter table 阅读全文

posted @ 2019-01-14 13:47 stupid_one 阅读(112) 评论(0) 推荐(0) 编辑

2019年1月8日

es6 vs commonjs

摘要: 'use strict' function showMeC() { alert("commonjs"); } module.exports = { showMeC: showMeC, }; # ...... const { showMeC } = require('./commonjs.js'); 阅读全文

posted @ 2019-01-08 11:44 stupid_one 阅读(209) 评论(0) 推荐(0) 编辑

2019年1月5日

踩坑记

摘要: 2022-07-06 17:07:42 gdb python install mysqldb for python 1、sudo apt-get install libmysqlclient-dev 2、pip install --no-cache mysqlclient install lxml 阅读全文

posted @ 2019-01-05 18:09 stupid_one 阅读(1004) 评论(4) 推荐(0) 编辑

crontab -e

摘要: crontab -e可以配置定时任务 0 */3 * * * cd /root/find && nohup qbittorrent-nox --webui-port=7070 & 上面那个命令是:每三小时执行一次。 第1列分钟0~59 第2列小时0~23(0表示子夜) 第3列日1~31 第4列月1~ 阅读全文

posted @ 2019-01-05 00:30 stupid_one 阅读(788) 评论(0) 推荐(0) 编辑

2018年12月29日

react

摘要: 前端仔ing...... react在es6语法下定义自己的组件:组件的元素都是用html语法。 然后这样用: 注意,原生 HTML 元素名以小写字母开头,而自定义的 React 类名以大写字母开头,比如 HelloMessage 不能写成 helloMessage。除此之外还需要注意组件类只能包含 阅读全文

posted @ 2018-12-29 10:12 stupid_one 阅读(148) 评论(0) 推荐(0) 编辑

2018年12月25日

关于i18n

摘要: 现在工作主要负责小程序端,很少负责backend。最近的一个任务是配置多语言。因为一开始都是写死的中文,现在需要把那些变成英文。 狂搜了一波,其实网上的方法都不怎好。(可能就是一开始看的时候觉得好。)但是维护起来麻烦。 我这里的做法是, 1、去google-doc里面新建一个xls文档,自己分好层级 阅读全文

posted @ 2018-12-25 14:55 stupid_one 阅读(148) 评论(0) 推荐(0) 编辑

2018年12月3日

python3

摘要: 1、装饰器。 #!/usr/bin/env python3 # -*- coding: utf-8 -*- import functools def log(func): @functools.wraps(func) def wrapper(*args, **kwargs): print('{0} 阅读全文

posted @ 2018-12-03 16:38 stupid_one 阅读(234) 评论(0) 推荐(0) 编辑

2018年11月8日

工作中的。学习

摘要: JS V8引擎 https://www.zhihu.com/question/27428135/answer/2085274297?utm_source=wechat_session&utm_medium=social&utm_oi=631484691027464192&utm_content=gr 阅读全文

posted @ 2018-11-08 17:03 stupid_one 阅读(188) 评论(0) 推荐(0) 编辑

2018年11月4日

中国电信

摘要: 除了以下 IPV4 保留地址,其它可判定为公网 IP 。1 、私有 IP 地址, A,B,C 类保留下来的,可以在网络,校园,企业内使用。10.0.0.0 ~ 10.255.255.255172.16.0.0 ~ 172.31.255.255192.168.0.0 ~ 192.168.255.255 阅读全文

posted @ 2018-11-04 01:06 stupid_one 阅读(221) 评论(0) 推荐(0) 编辑

2018年10月26日

leetcode 862 shorest subarray with sum at least K

摘要: https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/ 首先回顾一下求max子数组的值的方法是:记录一个前缀min值,然后扫一遍sum数组。 1、首先这里不需要最大,因为刚好够k就好了 2、这里需要距离最短。就是数组的 阅读全文

posted @ 2018-10-26 20:43 stupid_one 阅读(199) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 57 下一页

导航