自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 资源 (27)
  • 收藏
  • 关注

原创 mysql workbench 修改字体大小 eclipse修改字体大小

 edit——>preferences—->Fonts&colors—>Fonts 重启mysql workbench eclipse修改字体大小window => preferences => colors and fonts https://github.com/elastic/elasticsearch ...

2018-10-31 16:16:45 2685

原创 php groupby mysql "group by" 按条件分组

php group by* groupby.php<?phpfunction groupby(array $a, string $prop) {    return array_reduce($a, function($acc, $obj) use ($prop) {        $key = $obj[$prop];        if (!array_key_exi...

2018-10-30 14:45:44 3228

原创 php unset 数组 下标不错位 array_filter 直接在原数组上操作 filter myfilter

* Arr.phpclass Arr { public static function some($a, callable $c) { $n = count($a); for ($i = 0; $i < $n; $i++) { if (call_user_func($c, $a[$i])) { ...

2018-10-29 16:55:11 1044

原创 php shell sort

* 目录结构  sort/{ArrayUtil.php,Comparator.php,Shell.php}  autoload.php  index.php* sort/Shell.php&lt;?phpnamespace sort;class Shell { protected $comparator; public function __cons...

2018-10-28 10:41:56 270

原创 Java 用PriorityQueue 实现Huffman Code

https://www.geeksforgeeks.org/huffman-coding-greedy-algo-3/character Frequency a 5 b 9 c 12 d 13 e 16 f 45...

2018-10-27 14:48:32 396

原创 javascript 自动触发 按键盘操作 trigger

回车键 keyCode 13HTMLElement.prototype.pressKey = function(code) { var evt = document.createEvent("UIEvents"); evt.keyCode = code; evt.initEvent("keydown", true, true); this.dispatchEvent(evt);}...

2018-10-26 15:41:47 18634 17

原创 动态加载js, layui加载css, html,js 带上版本号

layui demo演示 https://www.layui.com/admin/pro/#/home/homepage1 layui加载css, html,js 带上版本号这样升级页面的时候用户不用清除浏览器缓存* common.jsfunction Script(callback) { var js = document.createElement("script...

2018-10-26 14:36:34 8776

原创 php 排好序的数组去重 array_unique

* shrink.php&lt;?php/** * $a = [1, 2, 3, 4, 5, 5, 5] * arrayshrink($a, 4, 7); // $a = [1,2,3,4,5] * remove elements from $start+1 to $end-1 */function arrayshrink(array&amp; $arr, int $start...

2018-10-25 16:58:59 511

原创 javascript 单向链表反转 reverse 部分反转

leetcode:https://leetcode.com/problems/reverse-linked-list//** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } *//** * @p...

2018-10-25 14:36:44 755

原创 php 合并 2次从数据库查找出来的 数组

sessionid, uuid 2个字段上都有索引,但是查询条件  (sessionid='xxx' or uuid='yyy') 不能使用索引=&gt; 拆成2个sql  sessionid='xxx', uuid='yyy' 将查询出来的结果合并  /** * @param array $a * @param array $b * @param...

2018-10-23 17:39:06 821

原创 layui表格id, lay-filter命名 必须以 LAY-table- 开头 layui checkbox 批量删除 table.checkStatus

<div class="layui-card"> <!--<div class="layui-card-header">示例表头</div>--> <div class="layui-card-body"> <table class="layui-hide" id="LAY-table-operat...

2018-10-23 11:14:34 14354 1

原创 php array_column

* mypluck.php&lt;?php// array_column(PHP 5&gt;=5.5.0, PHP 7)// http://php.net/manual/en/function.array-column.phpfunction myarraymap(callable $f, array $a) : array { $ret = []; for ...

2018-10-19 11:31:47 249

原创 php array_merge 利用 array_key_exists实现

* myarraymerge.phphttp://php.net/manual/en/function.array-merge.php&lt;?php// http://php.net/manual/en/function.array-merge.phpfunction myarraymerge($a1, $a2) { $index = 0; foreach ($a1...

2018-10-19 11:12:41 386

原创 php 简单的对象(对象不嵌套) debug 输出

* getobjectvars.php&lt;?phpclass foo { private $a = true; public $b = 1; public $c = "value of 'c'"; private $d = 10.336; static $e = ["a", "b", "\n"]; public function tes...

2018-10-18 18:13:28 251

原创 javascript 16进制的字符串 转换为 10进制整数 hex int2hex

16进制的字符串 转换为整数function hex2int(hex) { var len = hex.length, a = new Array(len), code; for (var i = 0; i < len; i++) { code = hex.charCodeAt(i); if (48<=code &&...

2018-10-17 17:49:24 9157 1

原创 node.js 中文编码 \uxxx 转化为汉字

* resource.json[{"id":15,"name":"Java2","info":"1234132","count":0},{"id":14,"name":"C#111","info":"asdfads","count":0},{"id&quo

2018-10-17 17:18:27 6600

原创 laravel redis 订阅 发布 (sub/pub), Illuminate\Support\Facades\Redis::command用法

* 配置redis扩展https://blog.csdn.net/fareast_mzh/article/details/81463749用php -S 0.0.0.0:8090 -t public 这种web服务, redis连接失败。我用的xampp, extra/httpd-vhost.conf配置* composer安装redis连接的组件composer requ...

2018-10-17 10:21:37 2096

转载 learn x in y minutes, x = “python“

* learn.py# Single line comments start with a number symbol.""" Multiline strings can be written using three "s, and are often used as comments...

2018-10-16 09:10:20 583 1

原创 字母易位词(anagram)

题目来源:https://blog.csdn.net/csdn_bang/article/details/83044235两个单词如果包含相同的字母,次序不同,则称为字母易位词(anagram)。例如,“silent”和“listen”是字母易位词,而“apple”和“aplee”不是易位词。请定义函数检查两个单词是否是字母易位词。可以假设两个单词字母均为小写。要求算法复杂度尽量低* ...

2018-10-15 15:30:55 1700

原创 php按行处理文件

* 不知道 javascript中怎么 引入模板文件, 所以用js字符串拼接 html* LineProcessor.php&lt;?phpclass LineProcessor { /** @var \SplFileObject */ private $file; /** @var int */ private $linum; /** ...

2018-10-14 09:40:31 616

原创 linux 安装memcached, php7安装Memcached扩展, memcache

* 安装libeventhttps://blog.csdn.net/fareast_mzh/article/details/100055821* 安装zlib链接: https://pan.baidu.com/s/19jBLzGAIxnXY4MbQyBGUig 提取码: ssmk 复制这段内容后打开百度网盘手机App,操作更方便哦解压安装到目录 /usr/local/zlib*...

2018-10-13 23:55:38 467

原创 终端 php 打印当月的日历 cal __autoload

Cal.phpindex.php仿照系统命令* Cal.php&lt;?phpclass Cal { /** @var DateTime */ private $datetime; /** @var array */ private static $monthDay = [0, 31, 28, 31, 30, 31, 30, 31, 31,...

2018-10-13 14:08:52 552

原创 lumen 访问根目录 / Whoops, looks like something went wrong.

 检查生成session文件目录的权限$ ls -ld storage/framework/session/drwxr-xr-x 2 daemon daemon 4096 Oct 11 19:01 storage/framework/session/ E:\easyeye\src\admin\config\session.php&lt;?phpreturn [ ...

2018-10-12 10:15:24 1085

转载 老司机也该掌握的MySQL优化指南

当MySQL单表记录数过大时,增删改查性能都会急剧下降,所以我们本文会提供一些优化参考,大家可以参考以下步骤来优化:https://yq.aliyun.com/articles/645565一、单表优化 除非单表数据未来会一直不断上涨,否则不要一开始就考虑拆分,拆分会带来逻辑、部署、运维的各种复杂度。一般以整型值为主的表在千万级以下,字符串为主的表在五百万以下是没有太大问题的,而事...

2018-10-10 11:43:29 233

原创 mysql 导出数据库 数据表 tbl_dump.bat

1. 导出zkt_crm的指定表名#!/usr/bin/env bashif [ "$#" -lt 1 ]; then echo "Usage: $(basename $0) [table_name]"; exitfitableName=$1/opt/lampp/bin/mysqldump -uroot -h172.16.0.224 --port 3308 --...

2018-10-10 11:09:54 504

原创 mysql 添加 删除索引(index) alter table 修改字段 修改列

* 建表语句CREATE TABLE `config` (  `id` int(11) NOT NULL AUTO_INCREMENT,  `name` varchar(255) NOT NULL COMMENT '配置项',  `value` varchar(255) NOT NULL COMMENT '配置值',  PRIMARY KEY (`id`),  UNIQUE KEY...

2018-10-10 10:15:17 5619

原创 projecteuler#4 Largest palindrome product

* Palindrome.php/** * Largest palindrome product * https://projecteuler.net/problem=4 * A palindromic number reads the same both ways. * The largest palindrome made from the product of two 2-dig...

2018-10-07 17:54:51 321

原创 projecteuler#3 Largest prime factor 素数

* Prime.php<?php/**https://projecteuler.net/problem=3The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ? */class Prime { /** @...

2018-10-07 14:59:27 354

原创 二叉堆 binary heap (1)

* autoload.php 接上次的blog   =&gt;   https://blog.csdn.net/fareast_mzh/article/details/82832668&lt;?php$prefixList = ['stack\\dogcat', 'stack', 'Heap'];array_walk($prefixList, function($prefix) {...

2018-10-06 00:24:26 248

原创 projecteuler#2 Even Fibonacci numbers

* Solution.php&lt;?php/** * https://projecteuler.net/problem=2 * Even Fibonacci numbers */class Solution { protected $bound; public function __construct($bound) { $this-&gt;b...

2018-10-05 23:30:14 271

原创 projecteuler#1 Multiples of 3 and 5

* Solution.php&lt;?php/** * Problem#1 * https://projecteuler.net/problem=1 * If we list all the natural numbers below 10 that are multiples of 3 or 5, * we get 3, 5, 6 and 9. The sum of these ...

2018-10-05 00:33:42 326

原创 刷题网站

这里列出一些有用的网站(有些不支持用JavaScript提交解答,但是我们依然可以将从本书中 所学到的逻辑应用到其他语言上)。https://leetcode.com/problemset/all/ * UVa Online Judge(http://uva.onlinejudge.org/):这个网站包含了世界各大赛事的题目, 包括由IBM赞助的ACM国际大学生程序...

2018-10-05 00:02:37 1249

原创 atguigu.com chainblock 学习路线图

1. 前端- html + css + js- ES6- require.js AMD 模块化加载- webpack- Vue- npm + node + http- mongodb + mongoose- ajax + express + koa62. go语言- 基本数据类型 + 复合数据类型- 结构体和方法- 包和封装- OOP + int...

2018-10-04 23:14:13 368

原创 测试 最大递归次数 调用栈大小的限制

* stackoverflow.php&lt;?phpfunction recursiveFn(&amp;$i) { $i++; recursiveFn($i);}try { $i = 0; recursiveFn($i);} catch (LengthException $ex) { // echo 'i='.$i.' error: ' ....

2018-10-04 21:22:25 2003

原创 php 二分查找

假设数组已经排好顺序* binarysearch.php&lt;?phpfunction binarysearch(array $a, $item, callable $c = null) { $low = 0; $high = count($a) - 1; if (null == $c) { $c = function($a, $b) { ...

2018-10-04 20:52:22 707

https://acm.timus.ru/print.aspx?space=1&num=1002 题目答案

In the present world you frequently meet a lot of call numbers and they are going to be longer and longer. You need to remember such a kind of numbers. One method to do it in an easy way is to assign letters to digits as shown in the following picture: 1 ij 2 abc 3 def 4 gh 5 kl 6 mn 7 prs 8 tuv 9 wxy 0 oqz This way every word or a group of words can be assigned a unique number, so you can remember words instead of call numbers. It is evident that it has its own charm if i

2024-05-06

xxd(hexdump),16进制打印

xxd 打印文件16进制内容

2024-04-25

Combined GCC/Nasm programs

编译asm汇编

2024-04-22

Assembly Language Step-By-Step - (Wiley, 2009, 0470497025).pdf

linux nasm, 汇编语言教程。Assembly Language Step-By-Step - Programming with Linux, 3rd edition (Wiley, 2009, 0470497025).pdf

2024-04-21

线性代数小抄,公式定理手册

线性代数小抄,公式定理手册

2024-04-16

C语言运算符优先级, 位运算容易搞错运算符优先级

C语言运算符优先级

2024-04-16

libevent库, http-server静态文件服务器示例

cd sample mkdir htdocs vim htdocs/index.html ./http-server -p 18080 -v htdocs curl -i http://127.0.0.1:18080/index.html

2023-12-14

nasm-10.09.tar.gz

This is the project webpage for the Netwide Assembler (NASM), an asssembler for the x86 CPU architecture portable to nearly every modern platform, and with code generation for many platforms old and new.

2023-11-21

DNS协议格式文档 DNS-primer.pdf

DNS协议格式文档 DNS-primer.pdf

2023-10-17

windows, which命令找到.exe文件路径

windows, which命令找到.exe文件路径,依赖boost库。目录迭代参考博客 https://www.cppstories.com/2019/04/dir-iterate/

2023-09-30

xxd用16进制打印文件内容,调试代码用

例如输出.png文件的内容 00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR 00000010: 0000 0096 0000 0096 0806 0000 003c 0171 .............<.q 00000020: e200 0000 0173 5247 4200 aece 1ce9 0000 .....sRGB....... 00000030: 0004 6741 4d41 0000 b18f 0bfc 6105 0000 ..gAMA......a... 00000040: 0009 7048 5973 0000 1274 0000 1274 01de ..pHYs...t...t.. 00000050: 661f 7800 002c 0149 4441 5478 5eed 9d07 f.x..,.IDATx^... 00000060: 5814 57db 86bf 96e4 fbf2 a718 134b d4d8 X.W..........K..

2023-08-23

错误日志库实现打印错误堆栈

错误日志库实现打印错误堆栈,解决apue中if error, 错误处理

2023-08-23

Linux C/C++发起http请求示例

Linux C/C++发起http请求, 多线程示例

2023-03-14

windows Visual Studio dll动态库模板

windows Visual Studio dll动态库模板 https://learn.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?source=recommendations&view=msvc-170

2022-09-26

windows环境Visual studio创建静态库,项目框架

Walkthrough: Create and use a static library C++ windows环境创建静态库,根据教程,以后创建其他的静态库可以直接用这个项目作为框架代码,改配置。 https://learn.microsoft.com/en-US/cpp/build/walkthrough-creating-and-using-a-static-library-cpp?source=recommendations&view=msvc-170

2022-09-26

PHP分布式事务 YiMQ库

yilu-tech/yimq-laravel-sdk/src/YiMqManager.php

2022-07-13

php base64字符串图片jpeg文本文件转换为jpeg图片

php base64字符串图片jpeg文本文件转换为jpeg图片

2022-04-05

xdebug-3.1.0beta2.tgz

参照安装教程 https://xdebug.org/docs/install

2021-09-14

platform-tools_r31.0.3-linux.zip

android adb调试工具

2021-08-15

platform-tools_r31.0.3-darwin.zip

adb安卓调试命令行工具 Mac版本

2021-08-15

platform-tools_r31.0.3-windows.zip

adb 安卓调试工具

2021-08-15

PHP-TreeMap.zip

用PHP写的红黑树,带测试用例, TreeSet https://blog.csdn.net/fareast_mzh/article/details/119495318 这篇博文的完整代码

2021-08-13

PhpSearchTree.zip

https://blog.csdn.net/fareast_mzh/article/details/109709882 这篇博客的附件代码

2021-05-10

windows环境 gcc/g++ mingw64.zip

解压,把bin目录添加到path环境变量即可。这样就能找到gcc.exe, g++.exe

2021-04-01

axure chrome插件 axure_chrome_extension_V0.6.3.zip

chrome://extensions/ Load unpacked

2021-01-04

DesignPatterns.zip

抽象工厂模式,适配器模式,模板模式,策略模式。先写这几种,对接第3方api可能用到的。http://www.imooc.com/wenda/detail/418385

2020-06-22

composer.phar

安装composer每次需要从外国网站下载,速度慢。直接保存一份,下载快。创建文件composer.bat 内容如下 @php "%~dp0composer.phar" %* 把这2个文件放到跟php.exe一样的目录下,然后把这个目录加入到path环境变量,就可以用composer命令了。

2020-05-19

ThinkPHP电商微信小程序.zip

PHP写的电商小程序,前端小程序,后台接口用的thinkphp。注册微信小程序账号按照文档配置即可使用。可以用来二次开发电商。

2020-04-28

layui_admin_template.zip

layui admin 后台管理模板, 从网站抓取下来的。

2020-04-28

phalcon-stub-3.4.12.zip

phpstorm识别Phalcon语法及提示,需要的包。下载phalcon/phalcon-devtools包,php执行build之后的。phalcon是个C写的扩展,默认phpstorm没有语法提示支持。

2020-04-27

XhUser.vue

下拉选择用户 https://gitee.com/wukongcrm/72crm/blob/master/ux/src/components/CreateCom/XhUser.vue

2020-01-15

梦网短信API V5.5 接口说明.doc

梦网短信API V5.5 接口说明。接口调用代码示例,错误码说明。

2019-12-11

http接口开发文档(国内接口,含接口提交模板).doc

curl socket 调用接口发送短信的文档, 短信模板说明。

2019-11-21

phpqrcode.zip

php根据url链接生成二维码 一个通用的php库 可以把url转为二维码

2019-10-15

urlGen-master.zip

php调用接口实现短链接, 检查链接是否被微信屏蔽 http://api.ft12.com/api.php。存在安全风险,为了保障您的安全,已帮你拦截。

2019-09-02

C++boost库 boost.zip

bitcoin程序安装需要依赖的库boost 核心问题,也是比较常见的问题,原因是系统中没有安装boot库,解决方法如下: 下载 boost (http://www.boost.org/users/history/version_1_66_0.html) cd boost_1_66_0/ ./bootstrap.sh --prefix=/usr/local/ ./bjam install 注意bootstrap中的prefix参数很重要,这个直接决定后面运行的时候如果出现libboost.xxx.so找不到的解决方法

2019-08-21

district.json 中国省市县3级联动需要的数据

地区三级联动需要的数据文件 https://mp.csdn.net/postedit/89083909

2019-08-01

engine.zip

php 修改存储引擎 修改字段 验证MyISAM不支持事务回滚, 博客示例代码

2019-07-31

Redis php API

Redis php API redis.so扩展提供的phpAPI 可以参考这个手册使用PHP连接redis操作

2019-07-25

redis小抄

redis小抄 redis_cheat_sheet.pdf

2018-12-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除