2022年11月25日
摘要: $form->multipleImage('images')->sortable()->compress(['width' => 750,'quality' => 90,])->uniqueName() ->saveAsString()->saving(function ($value)use($f 阅读全文
posted @ 2022-11-25 09:43 paulversion 阅读(111) 评论(0) 推荐(0) 编辑
  2022年10月10日
摘要: server.go package mainimport ( "encoding/json" "fmt" "net" "net/rpc" "net/rpc/jsonrpc")type RpcTest struct {}type Result struct { Code int `json:"code 阅读全文
posted @ 2022-10-10 21:16 paulversion 阅读(33) 评论(0) 推荐(0) 编辑
  2022年8月18日
摘要: package mainimport ( "fmt" "time")var RetryFlag chan bool = make(chan bool)func main() { Retry(test,[]int{3,5,10})}//重试次数func Retry(f func()bool,rules 阅读全文
posted @ 2022-08-18 20:04 paulversion 阅读(52) 评论(0) 推荐(0) 编辑
  2020年10月19日
摘要: for v in pairs(ARGV) do redis.debug(ARGV[v])endredis.debug(redis.call("GET",KEYS[1])) local function slice(list_key,argv_list) local type_result = red 阅读全文
posted @ 2020-10-19 20:59 paulversion 阅读(2391) 评论(0) 推荐(0) 编辑
  2020年10月15日
摘要: $column 为一维数组$row 为二维数组$sql = 'INSERT INTO %s(%s) VALUES %s';$columns = array_map(function ($field) { return sprintf('`%s`', $field);}, $columns);$row 阅读全文
posted @ 2020-10-15 16:06 paulversion 阅读(131) 评论(0) 推荐(0) 编辑
  2020年1月5日
摘要: https://www.elastic.co/cn/blog/getting-started-with-elasticsearch-security 阅读全文
posted @ 2020-01-05 17:44 paulversion 阅读(203) 评论(0) 推荐(0) 编辑
  2019年11月19日
摘要: https://avnpc.com/pages/build-php-develop-env-by-docker# 阅读全文
posted @ 2019-11-19 21:52 paulversion 阅读(1366) 评论(0) 推荐(0) 编辑
  2019年10月20日
摘要: 通过递归实现阶乘 function multi($n){ 阅读全文
posted @ 2019-10-20 10:41 paulversion 阅读(3800) 评论(0) 推荐(0) 编辑
  2019年10月19日
摘要: <?php interface Animal{ public function attack(); public function talk(); }class People implements Animal{ public $month; public $hand; public functio 阅读全文
posted @ 2019-10-19 12:59 paulversion 阅读(416) 评论(0) 推荐(0) 编辑
  2019年10月14日
摘要: 如果第一次无需执行(如果编译的时候出错再次执行才需要) 1:rm -rf node_modules 更改镜像为淘宝镜像 2:yarn config set registry https://registry.npm.taobao.org 3:SASS_BINARY_SITE=http://npm.t 阅读全文
posted @ 2019-10-14 10:48 paulversion 阅读(229) 评论(0) 推荐(0) 编辑