搜狗输入法-设置属性-高级-自定义短语-直接编辑配置文件
将以下代码 直接粘贴 到编辑的文件中。
ajax,1=
$.ajax({
url: '',
type: 'POST',
dataType: 'json',
data: {param1: 'value1'}
}).done(function(data) {
console.log(data);
});
am,1=
/**
* ______ __ ____ __
* /_ __/__ ____/ / ___ ___ / _(_)__ ___ ___/ /
* / / / -_) __/ _ \/ _ \/ _ \/ _/ / -_) _ \/ _ /
* /_/ \__/\__/_//_/_//_/\___/_//_/\__/_//_/\_,_/
* ___ ___ ___ _______ ______________________
* |_ ||_ |( _ < / __// __< < / __< / ___ \___ ____ _ _______ __ _
* / __// __// _ / /__ \/__ \/ // /__ \/ / / _ `/ _ `/ _ `// __/ _ \/ ' \
* /____/____/\___/_/____/____/_//_/____/_/\ \_,_/\_, /\_, (_)__/\___/_/_/_/
* \___/ /_/ /_/
*/
asynonous,1=
<?php pcntl_signal(SIGCHLD, SIG_IGN); function asynchronousTask(callable $functionName, $params) { $apid = pcntl_fork(); if ($apid == -1) { exit('could not fork for client ' . $client); } else if ($apid) { return; } else { call_user_func_array($functionName, $params); exit(); } } function httpCurl($url, $data, $requestType = 'get', $callback = '') { //初始化curl $ch = curl_init(); //设置超时 curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); if (strtolower($requestType) == 'post') { curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data ); } $return = curl_exec($ch); curl_close($ch); // return $return; if (is_callable($callback)) { $callback($return); } return; } for($i = 0; $i <= 10; $i++) { asynchronousTask('httpCurl', ['http://www.baidu.com', '', 'get', function ($data) { sleep(rand(1, 3)); echo strlen($data) . "\n"; }]); } car,1= /** * _._ * _.-="_- _ * _.-=" _- | ||"""""""---._______ __.. * ___.===""""-.______-,,,,,,,,,,,,`-''----" """"" """"" __' * __.--"" __ ,' o \ __ [__| * __-""=======.--"" ""--.=================================.--"" ""--.=======: * ] [w] : / \ : |========================| : / \ : [w] : * V___________:| |: |========================| :| |: _-" * V__________: \ / :_|=======================/_____: \ / :__-" * ""____"" ""____"" */ curl,1= /** * 请求数据 * @param $url 请求地址 * @param $data 提交数据 * @param $requestType 请求类型 */ function httpCurl($url, $data, $requestType = 'get') { //初始化curl $ch = curl_init(); //设置超时 curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); if (strtolower($requestType) == 'post') { curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data ); } $return = curl_exec($ch); curl_close($ch); return $return; } digui,1= <?php $startMemory = memory_get_usage(); $data = [ 'level1' => [ ['id' => 1, 'pid' => '0', 'category_name' => '一年级'], ['id' => 2, 'pid' => '0', 'category_name' => '二年级'], ['id' => 3, 'pid' => '0', 'category_name' => '三年级'] ], 'level2' => [ ['id' => 4, 'pid' => '1', 'category_name' => '一年级一班'], ['id' => 5, 'pid' => '1', 'category_name' => '一年级二班'], ['id' => 6, 'pid' => '1', 'category_name' => '一年级三班'], ['id' => 7, 'pid' => '1', 'category_name' => '一年级四班'], ['id' => 8, 'pid' => '1', 'category_name' => '一年级五班'], ['id' => 9, 'pid' => '2', 'category_name' => '二年级一班'], ['id' => 10, 'pid' => '2', 'category_name' => '二年级二班'], ['id' => 11, 'pid' => '2', 'category_name' => '二年级三班'], ['id' => 12, 'pid' => '2', 'category_name' => '二年级四班'], ['id' => 13, 'pid' => '2', 'category_name' => '二年级五班'], ['id' => 14, 'pid' => '3', 'category_name' => '三年级一班'], ['id' => 15, 'pid' => '3', 'category_name' => '三年级二班'], ['id' => 16, 'pid' => '3', 'category_name' => '三年级三班'], ['id' => 17, 'pid' => '3', 'category_name' => '三年级四班'], ['id' => 18, 'pid' => '3', 'category_name' => '三年级五班'] ], 'level3' => [ ['id' => 19, 'pid' => '4', 'category_name' => '一年级一班 小米'], ['id' => 20, 'pid' => '4', 'category_name' => '一年级一班 小红'], ['id' => 21, 'pid' => '4', 'category_name' => '一年级一班 小狼'], ['id' => 22, 'pid' => '4', 'category_name' => '一年级一班 小明'], ['id' => 23, 'pid' => '4', 'category_name' => '一年级一班 小张'], ['id' => 24, 'pid' => '5', 'category_name' => '一年级二班 小米'], ['id' => 25, 'pid' => '5', 'category_name' => '一年级二班 小红'], ['id' => 26, 'pid' => '5', 'category_name' => '一年级二班 小狼'], ['id' => 27, 'pid' => '5', 'category_name' => '一年级二班 小明'], ['id' => 28, 'pid' => '5', 'category_name' => '一年级二班 小张'], ['id' => 29, 'pid' => '6', 'category_name' => '一年级三班 小米'], ['id' => 30, 'pid' => '6', 'category_name' => '一年级三班 小红'], ['id' => 31, 'pid' => '6', 'category_name' => '一年级三班 小狼'], ['id' => 32, 'pid' => '6', 'category_name' => '一年级三班 小明'], ['id' => 33, 'pid' => '6', 'category_name' => '一年级三班 小张'], ['id' => 34, 'pid' => '7', 'category_name' => '一年级四班 小米'], ['id' => 35, 'pid' => '7', 'category_name' => '一年级四班 小红'], ['id' => 36, 'pid' => '7', 'category_name' => '一年级四班 小狼'], ['id' => 37, 'pid' => '7', 'category_name' => '一年级四班 小明'], ['id' => 38, 'pid' => '7', 'category_name' => '一年级四班 小张'], ['id' => 39, 'pid' => '8', 'category_name' => '一年级五班 小米'], ['id' => 40, 'pid' => '8', 'category_name' => '一年级五班 小红'], ['id' => 41, 'pid' => '8', 'category_name' => '一年级五班 小狼'], ['id' => 42, 'pid' => '8', 'category_name' => '一年级五班 小明'], ['id' => 43, 'pid' => '8', 'category_name' => '一年级五班 小张'], ['id' => 44, 'pid' => '9', 'category_name' => '二年级一班 中米'], ['id' => 45, 'pid' => '9', 'category_name' => '二年级一班 中红'], ['id' => 46, 'pid' => '9', 'category_name' => '二年级一班 中狼'], ['id' => 47, 'pid' => '9', 'category_name' => '二年级一班 中明'], ['id' => 48, 'pid' => '9', 'category_name' => '二年级一班 中张'], ['id' => 49, 'pid' => '10', 'category_name' => '二年级二班 中米'], ['id' => 50, 'pid' => '10', 'category_name' => '二年级二班 中红'], ['id' => 51, 'pid' => '10', 'category_name' => '二年级二班 中狼'], ['id' => 52, 'pid' => '10', 'category_name' => '二年级二班 中明'], ['id' => 53, 'pid' => '10', 'category_name' => '二年级二班 中张'], ['id' => 54, 'pid' => '11', 'category_name' => '二年级三班 中米'], ['id' => 55, 'pid' => '11', 'category_name' => '二年级三班 中红'], ['id' => 56, 'pid' => '11', 'category_name' => '二年级三班 中狼'], ['id' => 57, 'pid' => '11', 'category_name' => '二年级三班 中明'], ['id' => 58, 'pid' => '11', 'category_name' => '二年级三班 中张'], ['id' => 59, 'pid' => '12', 'category_name' => '二年级四班 中米'], ['id' => 60, 'pid' => '12', 'category_name' => '二年级四班 中红'], ['id' => 61, 'pid' => '12', 'category_name' => '二年级四班 中狼'], ['id' => 62, 'pid' => '12', 'category_name' => '二年级四班 中明'], ['id' => 63, 'pid' => '12', 'category_name' => '二年级四班 中张'], ['id' => 64, 'pid' => '13', 'category_name' => '二年级五班 中米'], ['id' => 65, 'pid' => '13', 'category_name' => '二年级五班 中红'], ['id' => 66, 'pid' => '13', 'category_name' => '二年级五班 中狼'], ['id' => 67, 'pid' => '13', 'category_name' => '二年级五班 中明'], ['id' => 68, 'pid' => '13', 'category_name' => '二年级五班 中张'], ['id' => 69, 'pid' => '14', 'category_name' => '三年级一班 大米'], ['id' => 70, 'pid' => '14', 'category_name' => '三年级一班 大红'], ['id' => 71, 'pid' => '14', 'category_name' => '三年级一班 大狼'], ['id' => 72, 'pid' => '14', 'category_name' => '三年级一班 大明'], ['id' => 73, 'pid' => '14', 'category_name' => '三年级一班 大张'], ['id' => 74, 'pid' => '15', 'category_name' => '三年级二班 大米'], ['id' => 75, 'pid' => '15', 'category_name' => '三年级二班 大红'], ['id' => 76, 'pid' => '15', 'category_name' => '三年级二班 大狼'], ['id' => 77, 'pid' => '15', 'category_name' => '三年级二班 大明'], ['id' => 78, 'pid' => '15', 'category_name' => '三年级二班 大张'], ['id' => 79, 'pid' => '16', 'category_name' => '三年级三班 大米'], ['id' => 80, 'pid' => '16', 'category_name' => '三年级三班 大红'], ['id' => 81, 'pid' => '16', 'category_name' => '三年级三班 大狼'], ['id' => 82, 'pid' => '16', 'category_name' => '三年级三班 大明'], ['id' => 83, 'pid' => '16', 'category_name' => '三年级三班 大张'], ['id' => 84, 'pid' => '17', 'category_name' => '三年级四班 大米'], ['id' => 85, 'pid' => '17', 'category_name' => '三年级四班 大红'], ['id' => 86, 'pid' => '17', 'category_name' => '三年级四班 大狼'], ['id' => 87, 'pid' => '17', 'category_name' => '三年级四班 大明'], ['id' => 88, 'pid' => '17', 'category_name' => '三年级四班 大张'], ['id' => 89, 'pid' => '18', 'category_name' => '三年级五班 大米'], ['id' => 90, 'pid' => '18', 'category_name' => '三年级五班 大红'], ['id' => 91, 'pid' => '18', 'category_name' => '三年级五班 大狼'], ['id' => 92, 'pid' => '18', 'category_name' => '三年级五班 大明'], ['id' => 93, 'pid' => '18', 'category_name' => '三年级五班 大张'] ] ]; function recursion($data, $pid, $level) { if ($level > 3) return []; $result = []; foreach ($data['level' . $level] as $key => $value) { if ($value['pid'] == $pid) { $temp = $value; $children = recursion($data, $value['id'], $level + 1); if (!empty($children)) { $temp['children'] = $children; } $result[] = $temp; } } return $result; } $result = recursion($data, 0, 1); // print_r($result); // $endMemory = memory_get_usage(); // echo '开始的内存:' . $startMemory . "\n"; // echo '运行后内存:' . $endMemory . "\n"; // echo '相差的内存:' . ($endMemory - $startMemory) . "\n"; function macro($result, $level) { $html = ''; foreach ($result as $key => $value) { if ($level == 0) { $html .= str_repeat("\t", $level) . "<div class=\"left\" data-id=\"{$value['id']}\" data-pid=\"{$value['pid']}\">{$value['category_name']}</div>\n"; } else { $html .= str_repeat("\t", $level) . "<div class=\"item\" data-id=\"{$value['id']}\" data-pid=\"{$value['pid']}\">{$value['category_name']}</div>\n"; } if (!empty($value['children'])) { $html .= str_repeat("\t", $level) . "<div class=\"block_{$level}\" data-id=\"{$value['id']}\">\n" . macro($value['children'], $level + 1) . str_repeat("\t", $level) . "</div>\n"; } } return $html; } echo macro($result, 0); ?>
eee,1=#// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑【Technofiend <2281551151@qq.com> $year-$month_mm-$day_dd $fullhour:$minute:$second】↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
fzby,1=
/**
* #####################################################
* # #
* # _oo0oo_ #
* # o8888888o #
* # 88" . "88 #
* # (| -_- |) #
* # 0\ = /0 #
* # ___/`---'\___ #
* # .' \\| |# '. #
* # / \\||| : |||# \ #
* # / _||||| -:- |||||- \ #
* # | | \\\ - #/ | | #
* # | \_| ''\---/'' |_/ | #
* # \ .-\__ '-' ___/-. / #
* # ___'. .' /--.--\ `. .'___ #
* # ."" '< `.___\_<|>_/___.' >' "". #
* # | | : `- \`.;`\ _ /`;.`/ - ` : | | #
* # \ \ `_. \_ __\ /__ _/ .-` / / #
* # =====`-.____`.___ \_____/___.-`___.-'===== #
* # `=---=' #
* # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
* # #
* # 佛祖保佑 永无BUG #
* # #
* #####################################################
*/
me,1=
/**
* 777777777777777777777777777777777777777 -+21700-
* 777777777777777771,,1777777777777777777 ,1744443444492-
* 7777777777777777+ 077777777777777777 144427170++0123441
* 777777777777777, ,7777777777777777 2471+++++00000011244-
* 77777777777770 72 .077777777777777 .3437222377222227702739-
* 777777777777, .34. -7777777777777 194333772444312332323244.
* 77777777777. -44- .777777777777 4942+, . -,.. .,. -,2444,
* 777777777-, -2931171292+ -+7777777777 .944, ,3390
* 77777770. +38821178830 .177777777 .944 .---, 7391
* 777777- +3889-048820 -7777777 293 +0000, .,-,... 099.
* 77771,+, +38802009820 ,+-177777 .44 ,-1+.. ..-20+. -3,
* 777- 122711111..0490..711117221 +7777 .. 1 ,.,. . , .. ,- ,
* 77, -++013882 -88- 288310++- ,177 .. +. , ,. ....
* 77+ +1172989-.+88+.-9892711+ -777 ..., .. .. . .
* 7771, ,3322239888888889322233, .07777 . . .,..,,. ..
* 77777+ .237733948849337732. -777777 . . .
* 7777771. 11+2-1497-2+11 07777777 . -+-,--.
* 77777777- 027+ ,777777777 . .
* 77777777710 +22+ +07777777777 .
* 77777777777- +77+ ,777777777777 . . ...
* 7777777777770 +220 07777777777777 . . .
* 77777777777777, .10 ,777777777777777 .,, ,,.
* 7777777777777770 07777777777777777 .,--,0. ++,+-,.
* 77777777777777771, ,777777777777777777 .,--, -, .+, .,--,
* 777777777777777777+07777777777777777777 .-,. .... ,. .
* 777777777777777777777777777777777777777 .,. .,..
* 7777[Technofiend 2281551151@QQ.com]7777 .,. .,..
*/
php,1=是世界上最好的编程语言
sss,1=#// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓【Technofiend <2281551151@qq.com> $year-$month_mm-$day_dd $fullhour:$minute:$second】↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
table,1=
<table>
<thead>
<tr>
<th>编号</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th>操作</th>
</tr>
</thead>
<{ if (data.length > 0 ) { }>
<tbody>
<{ for (var i=0; i<data.length; i++) { }>
<tr>
<td><{=data[i].id}></td>
<td><{=data[i].id}></td>
<td><{=data[i].id}></td>
<td><{=data[i].id}></td>
<td><{=data[i].id}></td>
<td>
<a class="operate_button" href="/edit.html?id=<{=data[i].id}>">编辑</a>
<a class="operate_button" href="/delete.html?id=<{=data[i].id}>">删除</a>
</td>
</tr>
<{ } }>
</tbody>
<tfoot>
<tr>
<td colspan="6">
<{ if (paginate != '') { }>
<{=paginate}>
<{ } }>
</td>
</tr>
</tfoot>
<{ } }>
</table>
以后再群里面有人问你在输入法打php会显示什么的时候,就可以自定义,秒杀一切对手。
之后便可以使用秘籍:
搜狗输入法秘籍:
命令 | 详解 |
---|---|
sss | 注释开始 |
eee | 注释结束 |
ajax | jquery ajax |
digui | 无限极分类递归 |
me | 我 |
am | 关于我 |
fzby | 佛祖保佑 |
table | 表格 |
curl | curl请求 |
asynonous | 异步多任务(leader-flower模型) |
car | 汽车 |
php | 是世界上最好的编程语言 |