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
[package] | |
name = "uploadfile" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
axum = { version = "^0.7", features = ["multipart"] } | |
tokio = { version = "^1", features = ["full"] } | |
rand = "^0.8" | |
tower-http = { version = "^0.5", features = ["fs", "trace"] } |
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
[package] | |
name = "rust-sqlparser-demo" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
sqlparser = "0.40" |
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
[config] | |
default_to_workspace = false | |
skip_core_tasks = true | |
[tasks.test-target-1] | |
script = ''' | |
#!@duckscript | |
exec cargo run | |
''' |
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
<?php | |
# 来自 https://github.com/langyo/docker_discuz_x2/blob/main/upload/uc_client/model/user.php | |
# 行 119 - 139 | |
function check_login($username, $password, &$user) { | |
$user = $this->get_user_by_username($username); | |
if(empty($user['username'])) { | |
return -1; | |
} elseif($user['password'] != md5(md5($password).$user['salt'])) { |
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
<?php | |
# 来自 https://github.com/WordPress/WordPress/blob/master/wp-includes/class-phpass.php | |
/** | |
* Portable PHP password hashing framework. | |
* @package phpass | |
* @since 2.5.0 | |
* @version 0.5 / WordPress | |
* @link https://www.openwall.com/phpass/ | |
*/ |
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
// [ 常量值定义区 ] | |
const CharTypes = { | |
// 这里用于存储round类型元素的候选字符集 | |
}; | |
const ErrorType = { | |
errorSyntax:{ | |
type:"errorSyntax", | |
message:"不可约的表达式树!" | |
}, |