Skip to content

Instantly share code, notes, and snippets.

ShingChi shingchi

Block or report user

Report or block shingchi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 中文标点Unicode
| 名称 | Unicode | 符号 |
| ---- | ------- | ---- |
| 间隔号 | 00B7\U+FF0E | ·\. |
| 连接号 | 2013 | – |
| 破折号 | 2014 | —— |
| 引号 | 2018\2019 | ‘’ |
| 引号 | 201C\201D | “” |
| 省略号 | 2026 | …… |
| 顿号 | 3001 | 、 |
| 句号 | 3002 | 。 |
@shingchi
shingchi / Unicode中文和特殊字符的编码范围
Created Jan 6, 2015
Unicode中文和特殊字符的编码范围
View 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 Apr 25, 2014
CSScomb默认的CSS书写顺序
View css-properties-order
order name zenposition
top
right
bottom
left
z-index
display
visibility
-webkit-flex-direction
-moz-flex-direction
View Markdown Syntax.md

Phrase Emphasis

*italic*   **bold**
_italic_   __bold__

Links

Inline:

View HTML-tags.md

常用的 HTML 头部标签

详细介绍参见原文:https://github.com/yisibl/blog/issues/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 -->
View gist:7883167
<script language="javascript">
/*
* 写成类的方法格式如下:str.trim()
*/
String.prototype.trim=function(){ //删除左右两端的空格
return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.ltrim=function(){ //删除左边的空格
return this.replace(/(^\s*)/g,"");
}
@shingchi
shingchi / sublimetext.bat
Last active Dec 29, 2015 — forked from hizhengfu/sublimetext.bat
sublime text window下右键菜单。保存为bat文件,放入sublimetext安装文件夹与sublime_text同级,双击执行即可。能打开带空格文件夹下的文件。 注意:这个文件最好是复制并用记事本保存,直接下载的有可能存在换行问题导致不能正常使用。
View sublimetext.bat
@Echo Off
Title SublimeText 右键菜单维护
Pushd %~dp0
If "%PROCESSOR_ARCHITECTURE%"=="AMD64" (Set a="HKLM\SOFTWARE\Wow6432Node\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\SysWOW64) Else (Set a="HKLM\SOFTWARE\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\system32)
Rd "%b%\test_permission" >nul 2>nul
Md "%b%\test_permission" 2>nul||(Echo 请使用右键管理员身份运行&&Pause >nul&&Exit)
Rd "%b%\test_permission" >nul 2>nul
@shingchi
shingchi / Preferences.sublime-settings
Last active Jun 28, 2016
自己 Sublime Text 3 的配置文件
View Preferences.sublime-settings
{
// 配色方案
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
// 用户界面配置
"theme": "Flatland Dark.sublime-theme",
// 主题标签形状, true 时为方形
"flatland_square_tabs": false,
View jquery.textchange.js
/*!
* 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 = {
You can’t perform that action at this time.