上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 33 下一页
摘要: Arranging Coins You have n coins and you want to build a staircase with these coins. The staircase consists of k rows where the ith row has exactly i 阅读全文
posted @ 2023-01-03 21:34 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: Repeated Substring Pattern Given a string s, check if it can be constructed by taking a substring of it and appending multiple copies of the substring 阅读全文
posted @ 2023-01-03 21:33 iyiluo 阅读(26) 评论(0) 推荐(0)
摘要: Construct the Rectangle A web developer needs to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by n 阅读全文
posted @ 2023-01-03 21:33 iyiluo 阅读(15) 评论(0) 推荐(0)
摘要: Reverse Words in a String III Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and i 阅读全文
posted @ 2023-01-03 21:33 iyiluo 阅读(24) 评论(0) 推荐(0)
摘要: Island Perimeter You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells 阅读全文
posted @ 2023-01-03 21:32 iyiluo 阅读(17) 评论(0) 推荐(0)
摘要: win10 系统下的 Tim 个人文件夹默认保存在“我的文档”,虽然有个自定义选项,但是重启后会自动还原到“我的文档”。 可以用 windows 提供的文件夹映射来解决这个问题 MKLINK [[/D] | [/H] | [/J]] Link Target 例如,我们想把 Tim 文件夹放到 D 盘 阅读全文
posted @ 2023-01-03 10:12 iyiluo 阅读(993) 评论(0) 推荐(0)
摘要: mysql 是用用户名+ip来区分用户的,如下,是三个不同的用户 'username'@'localhost' 'username'@'127.0.0.1' 'username'@'%' 在 mysql,不同 ip 的同一用户尽量用同一个密码 参考: MySQL has two different 阅读全文
posted @ 2022-12-30 10:21 iyiluo 阅读(363) 评论(0) 推荐(0)
摘要: 方案一: 服务器A -> 后端服务器B 服务器A 代理后端流量,有时后端服务器会发送一些重定向响应,用 http 的 Location 表示重定向的地址,此时,需要把 Location 的 ip 修改为服务器A 的 ip location / { proxy_pass http://y.y.y.y: 阅读全文
posted @ 2022-12-27 16:56 iyiluo 阅读(1190) 评论(0) 推荐(0)
摘要: 官方自带 http 模块 python -m SimpleHTTPServer 8000 添加上传功能 github 仓库 simple_http_server #!/usr/bin/python # -*- coding: UTF-8 -*- """Simple HTTP Server With 阅读全文
posted @ 2022-12-09 10:00 iyiluo 阅读(81) 评论(0) 推荐(0)
摘要: Linux command line tool for uploading files over HTTP as multipart/form-data? curl -F "file=@localfile;filename=nameinpost" url.com 阅读全文
posted @ 2022-12-09 09:56 iyiluo 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 33 下一页