This file contains 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
public final class Base64 { | |
static private final int BASELENGTH = 255; | |
static private final int LOOKUPLENGTH = 64; | |
static private final int TWENTYFOURBITGROUP = 24; | |
static private final int EIGHTBIT = 8; | |
static private final int SIXTEENBIT = 16; | |
static private final int FOURBYTE = 4; | |
static private final int SIGN = -128; | |
static private final char PAD = '='; |
This file contains 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
SELECT | |
( CASE WHEN a.colorder = 1 THEN d.name | |
ELSE '' | |
END ) N'表名', | |
a.colorder N'字段序号', | |
a.name N'字段名', | |
( CASE WHEN COLUMNPROPERTY(a.id, a.name, 'IsIdentity') = 1 THEN '√' | |
ELSE '' | |
END ) N'标识', | |
( CASE WHEN ( SELECT |
This file contains 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 helper | |
Class Class_StringHelper | |
'************************************************** | |
'函数名:strLength | |
'作 用:检测字符串长度 | |
'************************************************** | |
Function strLength(Str) | |
dim i, Temp_str, Test_Str, size |
This file contains 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
<% | |
' 在ASP中实现加密与解密,加密方法:根据 RSA | |
Class clsRSA | |
Public PrivateKey | |
Public PublicKey | |
Public Modulus | |
Public Function Crypt(pLngMessage, pLngKey) | |
On Error Resume Next |
This file contains 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
<% | |
' 数据库操作助手文件 | |
Class Class_DbHelper | |
' 获取数据库版本 | |
Public Function version() | |
Dim versionString, v:v = Null | |
versionString = Conn.Execute("SELECT SERVERPROPERTY('productversion')")(0) ' 2000+ |
This file contains 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
<% | |
' Base64 加解密函数 | |
' .NET 实现 | |
' public string encrypt(string str) | |
' { | |
' byte[] encbuff = System.Text.Encoding.UTF8.GetBytes(str); | |
' | |
' return Convert.ToBase64String(encbuff); | |
' } |
This file contains 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
@echo off | |
color 0a | |
title 清理win7系统垃圾--- | |
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
echo.★☆ ☆★ | |
echo.★☆ ☆★ | |
echo.★☆ ☆★ | |
echo ★☆ 正在清除系统垃圾文件,请稍等..... ☆★ | |
echo.★☆ ☆★ |
This file contains 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
[auth] | |
bb.prefix = http://bitbucket.org | |
bb.username = username | |
bb.password = password | |
bbs.prefix = https://bitbucket.org | |
bbs.username = username | |
bbs.password = password | |
[ui] |
This file contains 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 uuid() { | |
$node = (isset($_SERVER['SERVER_ADDR'])) ? $_SERVER['SERVER_ADDR'] : null; | |
$pid = null; | |
if (strpos($node, ':') !== false) { | |
if (substr_count($node, '::')) { | |
$node = str_replace('::', str_repeat(':0000', 8 - substr_count($node, ':')) . ':', $node); | |
} | |
$node = explode(':', $node); | |
$ipv6 = ''; |
This file contains 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
Dim filePath, fileContents, dFileContents | |
filePath = "C:\" | |
' 查找所有 .lst 扩展名文件 | |
Dim fs, f, array1, f1 | |
Set fs = CreateObject("Scripting.FileSystemObject") | |
Set f = fs.GetFolder("C:\") | |
Set fc = f.Files | |
For Each f1 in fc |
NewerOlder