按键 | 说明 |
---|---|
F1 | 帮助 |
Enter | 进入该目录或读取该文件 |
Del | 删除的文件/目录 |
C-h | 输入关键字,隐藏文件名相关的文件 |
C-l | 刷新netrw目录列表 |
C-r | 使用gvim服务器浏览 |
C-tab | 缩小/扩大 窗口 |
- | 浏览上一级目录 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.copyToClipboard = function() { | |
var textArea = document.createElement("textarea"); | |
textArea.value = this; | |
document.body.appendChild(textArea); | |
textArea.select(); | |
try { | |
var result = document.execCommand('copy'); | |
} catch (e) { | |
var result = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sync Settings for Atom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
send("#打卡"); | |
window.setInterval(function() { | |
var date = new Date(); | |
var hour = date.getHours(); | |
var min = date.getMinutes(); | |
var sec = date.getSeconds(); | |
// 随机点播电影 - -! | |
if (min % 2 == 0 && sec == 30) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fileName = __DIR__ . '/file.txt'; | |
$fp = fopen($fileName, 'r'); | |
while(!feof($fp)) { | |
$buffer = fgets($fp, 4096); | |
$k = mt_rand(0, 9); | |
$res[$k][] = $buffer; | |
} | |
fclose($fp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getFullURL() | |
{ | |
$s = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : ''; | |
$p = strtolower($_SERVER['SERVER_PROTOCOL']); | |
$protocol = substr($p, 0, strpos($p, '/')) . $s; | |
$host = $_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_ADDR']; | |
$uri = $_SERVER['REQUEST_URI'] == '/' ? '' : $_SERVER['REQUEST_URI']; | |
return urldecode("$protocol://$host$uri"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function warningPage($title, $desc) | |
{ | |
die("<!DOCTYPE html><html><body style='background-color:#ce3426;color:white;position:absolute;left:30%;top:30%;'><h1>$title</h1><pre>$desc</pre></body></html>"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(0); | |
$pin = new pin(); | |
# echo $pin->Pinyin('王海燕','UTF8'); | |
$dd = listDir('./'); | |
$p = './'; | |
foreach ($dd['lists'] as $d) { | |
$newName = $pin->Pinyin($d['name'], 'UTF8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isIplongInnerUse($ipLong) | |
{ | |
// 0.0.0.0 – 0.255.255.255 软件 | |
if ($ipLong >= 0 && $ipLong <= 16777215) return 16777215 + 1; | |
// 10.0.0.0 – 10.255.255.255 专用网络 | |
if ($ipLong >= 167772160 && $ipLong <= 184549375) return 184549375 + 1; | |
// 100.64.0.0 – 100.127.255.255 专用网络 | |
if ($ipLong >= 1681915904 && $ipLong <= 1686110207) return 1686110207 + 1; | |
// 127.0.0.0 – 127.255.255.255 主机 | |
if ($ipLong >= 2130706432 && $ipLong <= 2147483647) return 2147483647 + 1; |
OlderNewer