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 | |
$url = @$_GET['url']; | |
if($url) { | |
$url = preg_replace('/http\:\/\//i', '', $url); | |
$url = 'http://' . $url; | |
$domain = parse_url($url); | |
$url = $domain['host']; | |
$dir = 'fcache'; | |
$dfav = $dir . "/default.ico"; | |
$fav = $dir . "/" . $url . ".ico"; |
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
# SimpleAuth 1.4.0 language file | |
join: | |
message: "本服使用了SimpleAuth进行身份验证。" | |
register: "您尚未注册。\n注册指令: /register <password>" | |
login: "登录指令: /login <password>" | |
register: | |
usage: "/register <password>" | |
description: "注册指令" |
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
author: "h404bi" | |
keys: | |
load: | |
spawnPointAdded: "预设出生点 {0},{1} 已从配置文件载入" | |
invalidSpawnPoint: "配置文件预设的出生点无效: {0}" | |
teamAdded: "预设队伍 {0} 已从配置文件载入" | |
namedTeamAdded: "预设队伍 {0} ({1}) 已从配置文件加入" | |
invalidTeam: "配置文件预设的队伍无效: {0}" | |
recipeApple: "已增加新的金苹果合成配方" | |
recipeCompass: "已增加新的指南针合成配方" |
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
# Command usage/error | |
command.veinminer=/veinminer mode/blocklist/toollist/blocklimit/radius/per_tick/saveconfig/help | |
command.veinminer.enable=/veinminer mode auto/sneak/no_sneak | |
command.veinminer.blocklist=/veinminer blocklist %s add/remove <模组 id>:<方块名> <metadata> | |
command.veinminer.toollist=/veinminer toollist %s add/remove <工具 id> | |
# Command result/Mode status | |
command.veinminer.set.disable=已禁用 Veinminer | |
command.veinminer.set.auto=已设置 Veinminer 为热键模式 | |
command.veinminer.set.sneak=已设置 Veinminer 为潜行模式 |
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
From: Wesley Wolfe <email redacted> | |
Date: 3 September 2014 03:48 | |
Subject: [SL] [abuse-google] Copyright | |
My name is Wesley Wolfe. A site hosted on an IP address owned by Multiplay | |
(ip redacted) is infringing on my software copyright by the distribution | |
of a software known as CraftBukkit. | |
Original content can be found at |
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
#!/usr/bin/env python3 | |
#-*- coding:utf-8 -*- | |
# start a python service and watch the nginx request dog | |
from http.server import HTTPServer, CGIHTTPRequestHandler | |
from threading import Thread, RLock | |
from hashlib import sha1 | |
import ipaddress | |
import subprocess | |
import requests |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>思源字体网页 font-family 指定 test case(仅简中)</title> | |
<style> | |
body { | |
font-family: simsun,serif; | |
font-weight: normal; | |
} |
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
https://talk.commonmark.org/t/soft-line-breaks-should-not-introduce-spaces/285 | |
https://github.com/markdown-it/markdown-it/issues/334 | |
http://chenyufei.info/blog/2011-12-23/fix-chinese-newline-becomes-space-in-browser-problem/ | |
https://stackoverflow.com/questions/8550112/prevent-browser-converting-n-between-lines-into-space-for-chinese-characters/8551033#8551033 | |
http://blog.guorongfei.com/2015/04/25/how-to-fix-the-markdown-newline-blank-problem/ | |
https://9.obelus.net/2018/04/15/cjk-markdown-whitespace-and-newline.html | |
https://www.v2ex.com/t/69433 |
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
import os, glob | |
keys = [ | |
"WEBVTT", | |
"-->" | |
] | |
def hasKey(array, line): | |
for item in array: | |
if item in line: |
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
// Add / Update a key-value pair in the URL query parameters | |
function updateUrlParameter(uri, key, value) { | |
// remove the hash part before operating on the uri | |
var i = uri.indexOf('#'); | |
var hash = i === -1 ? '' : uri.substr(i); | |
uri = i === -1 ? uri : uri.substr(0, i); | |
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i"); | |
var separator = uri.indexOf('?') !== -1 ? "&" : "?"; | |
if (uri.match(re)) { |
OlderNewer