原创 微信公衆號添加服務器url時token驗證

if (isset($_GET["echostr"])) { $echoStr = $_GET["echostr"]; echo $echoStr; exit; }

原创 IntelliJ 系列編輯器設置行註釋不要頂格

File | Settings | Editor | Code Style | C/C++ | Code Generation | General -> Line comment at first clolumn / Block

原创 IntelliJ IDEA 關閉java鏈式操作提示

File | Settings | Editor | Inlay Hints | Java

原创 IntelliJ 系列編輯器js版本設置

IDEA報錯: Import declarations are not supported by current JavaScript version 原因爲:不支持當前的js版本,在perference中進行設置javascri

原创 ffmpeg用過的命令

將mp3轉換成語音識別提供商支持的16k採樣率格式的wav文件ffmpeg -i tingvoa.com_1.mp3 -ar 16000 -ac 1 -ab 16 -f wav tingvoa.com_1.wav -y //-y

原创 windows下git-bash下的locate沒有其他盤數據處理

mkdir /c/Program\ Files/Git/usr/var; updatedb --localpaths='/c/' alias updatedb="updatedb --localpaths='/c/'" upda

原创 c++ 中函數操作符operator() 的使用

函數操作符()可以實現將對象當函數來使用 #include <iostream> using namespace std; class Square{ public: double operator()

原创 5分鐘更新一次數據模板

//5分鐘更新一次數據 if(Cache::get("channel_count_update_time") === false){ ChannelCountModel::updateCountData(); Ca

原创 選擇下拉列表時切換頁面上顯示的內容

<script> function get_data_type_change(get_data_type) { $(".material_cat_tr, .subject_id_tr").css('display', 'n

原创 設置Chrome DevTools中打開Network面板時默認關閉overview

將C:\Program Files (x86)\Google\Chrome\Application\72.0.3626.121\resources.pak文件中的: this._networkLogShowOverviewSettin

原创 phpmyadmin配置文件中設置使用原始模板

$cfg['MaxNavigationItems'] = 500; //設置左側導航中顯示的表數目 $cfg['ThemeDefault'] = 'original';

原创 格式化http的header字符串爲數組

<?php function http_header_to_arr($header_str){ $header_list = explode("\n", $header_str); $header_arr = []; forea