05 2020 档案

使用Cookie实现账号共享
摘要:本文简要介绍如何通过共享cookie完成账号共享(共享cookie的起因是部分基于微信小程序的平台并不支持直接的账号密码登陆,需要扫码,无法直接通过共享账号密码完成账号共享;除此之外,cookie共享账号还可以用在诸如短期共享账号而不泄露密码、不被服务器查封等场景下)工具:Chrome(即谷歌浏览器)、Chrome插件:EditThisCookie操作:1.前期准备:安装EditThisCooki... 阅读全文

posted @ 2020-05-29 16:47 katago 阅读(3100) 评论(0) 推荐(0) 编辑

浅谈Js 操作Cookie,以及HttpOnly 的限制
摘要:. Js 操作 Cookie.一般来说,只有服务器操作Cookie 才能保证一些必要的安全。但有时候,可能需要前端来增删改查 Cookie, 这个时候咱们的主角出现了——HttpOnly(๑•̀ㅂ•́) ✧.HttpOnly: HttpOnly is an additional flag included in a Set-Cookie HTTP response header. Using th... 阅读全文

posted @ 2020-05-29 15:29 katago 阅读(10025) 评论(0) 推荐(0) 编辑

poj 1816 trie树+dfs(强烈推荐,含有通配符的匹配)
摘要:// https://www.cnblogs.com/buptLizer/archive/2011/09/18/2180723.html #include #include #include #include using namespace std; const int N=100002; const int sonNum=28; struct nodeIdx{ ... 阅读全文

posted @ 2020-05-28 16:46 katago 阅读(248) 评论(0) 推荐(0) 编辑

ACM输入输出之python
摘要:Python的输入数野生字符串,需要自己转型,常用的转型函数有: strip :将两端的空白字符去掉,返回str slipt :将字符串用空白字符分开,返回[str] map:把list里面的值映射到指定类型,返回[type] isspace:是否用空行组成 EOF用来抓异常 输出加','不换行 Python3不能用raw_input(),而是用input()就行了,输出必须加“... 阅读全文

posted @ 2020-05-28 16:11 katago 阅读(501) 评论(0) 推荐(0) 编辑

python生成随机数、随机字符串
摘要:import random import string # 随机整数:包含头尾 print random.randint(1,50) # 随机选取0到100间的偶数: print random.randrange(0, 101, 2) # 随机浮点数: print random.random() [0,1) print random.uniform(1,... 阅读全文

posted @ 2020-05-28 16:09 katago 阅读(775) 评论(0) 推荐(0) 编辑

lower-bound 自己实现
摘要:// https://vjudge.net/problem/HackerRank-cpp-lower-bound 大致题意和这个差不多 #include #include #include using namespace std; const int maxn=100000+10; int a[maxn]; int n; int q; int my_low... 阅读全文

posted @ 2020-05-27 16:45 katago 阅读(254) 评论(0) 推荐(0) 编辑

c浮点数怎么四舍五入
摘要:#include /* printf */ #include /* round, floor, ceil, trunc */ inline int myIntRound(double dInput) { if(dInput >= 0.0f) { return ((int)(dInput + 0.5f)); } re... 阅读全文

posted @ 2020-05-27 15:51 katago 阅读(1129) 评论(0) 推荐(0) 编辑

Communication error with Jack server (60), try 'jack-diagnose' or see Jack server log
摘要:报错原因 jack不支持多用户同时编译,所以经常出现jack server报错的现象 解决方法 编辑 $home/.jack,$home/.jack-settings 和 $home/.jack-server/config.properties,修改SERVER_PORT_SERVICE和SERVER_PORT_ADMIN的端口号,然后保存。 如果权限不对可以执行下面的命令修改权限: ... 阅读全文

posted @ 2020-05-27 10:20 katago 阅读(931) 评论(0) 推荐(0) 编辑

求斐波那契数列第1000项
摘要:#include #include #include using namespace std; const int maxn=1000+5; long long fib[maxn]={1, 1}; void fibonacci(int n) { for(int i=2;i<=n;i++) { fib[i] = fib[i-1]... 阅读全文

posted @ 2020-05-26 18:09 katago 阅读(1671) 评论(0) 推荐(0) 编辑

01串
摘要:一个数字 ,刚开始是1, 后面每一步进行如下操作: 1替换成0 0替换成01 会得到如下串: 第一次得到 1 第二次得到 01 第三次得到 010 第四次得到 01001 求第n次得到的数字中从左到右第p位数字是几? n using namespace std; // Returns n-th Fibonacci word string fibWord(int... 阅读全文

posted @ 2020-05-25 16:55 katago 阅读(668) 评论(0) 推荐(0) 编辑

hdu 1708 Fibonacci String
摘要:Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3383 Accepted Submission(s): 1169 Problem Description After little Jim lear... 阅读全文

posted @ 2020-05-25 14:38 katago 阅读(104) 评论(0) 推荐(0) 编辑

进程管理工具 Supervisor
摘要:Supervisor 本身是python实现的,所以可用 pip install supervisor 来安装 官方文档地址: http://supervisord.org/index.html 导读 要想在终端后台常驻进程,首先想到的是在命令后加 & 符号,来达到隐藏程序在后台的目的,尽管看起来进程已经在后台运行了,实际上终端会话关闭时进程还是会被 kill 掉,这种问题一般是采用搭... 阅读全文

posted @ 2020-05-13 10:26 katago 阅读(237) 评论(0) 推荐(0) 编辑

git clone 某个分支或者所有分支
摘要:clone 某个分支: git clone -b dev5 https://git.coding.net/aiyongbao/tradepc.git clone 所有分支: git clone https://git.coding.net/aiyongbao/tradepc.git 查看远程分支 git branch –r 创建本地分支18860127247 ,并自动关联远... 阅读全文

posted @ 2020-05-09 12:08 katago 阅读(956) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示