Skip to content

Instantly share code, notes, and snippets.

@shingchi
shingchi / memcached-status-page.md
Created May 16, 2016 13:42 — forked from jbraithwaite/memcached-status-page.md
Memcached Status page in PHP

Screenshot

| 名称 | Unicode | 符号 |
| ---- | ------- | ---- |
| 间隔号 | 00B7\U+FF0E | ·\. |
| 连接号 | 2013 | – |
| 破折号 | 2014 | —— |
| 引号 | 2018\2019 | ‘’ |
| 引号 | 201C\201D | “” |
| 省略号 | 2026 | …… |
| 顿号 | 3001 | 、 |
| 句号 | 3002 | 。 |
@shingchi
shingchi / Unicode中文和特殊字符的编码范围
Created January 6, 2015 06:39
Unicode中文和特殊字符的编码范围
根据Unicode5.0整理如下:
1)标准CJK文字
http://www.unicode.org/Public/UNIDATA/Unihan.html
2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF
http://www.unicode.org/charts/PDF/UFF00.pdf
3)CJK部首补充:2E80-2EFF
http://www.unicode.org/charts/PDF/U2E80.pdf
@shingchi
shingchi / css-properties-order
Created April 25, 2014 16:27
CSScomb默认的CSS书写顺序
order name zenposition
top
right
bottom
left
z-index
display
visibility
-webkit-flex-direction
-moz-flex-direction
@shingchi
shingchi / Markdown Syntax.md
Last active February 14, 2024 04:41
Markdown Syntax

Phrase Emphasis

*italic*   **bold**
_italic_   __bold__

Links

Inline:

常用的 HTML 头部标签

详细介绍参见原文:yisibl/blog#1

<!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 -->
<html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa -->
<head>
    <meta charset='utf-8'> <!-- 声明文档使用的字符编码 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用 IE 最新版本和 Chrome -->
<script language="javascript">
/*
* 写成类的方法格式如下:str.trim()
*/
String.prototype.trim=function(){ //删除左右两端的空格
return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.ltrim=function(){ //删除左边的空格
return this.replace(/(^\s*)/g,"");
}
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"