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 standards
name:"HTML 5.1",
View jquery.textchange.js
* jQuery TextChange Plugin
* Copyright 2010, ZURB
* Released under the MIT License
(function ($) {
$.event.special.textchange = {
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
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,"");

常用的 HTML 头部标签


<!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 -->
<html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 -->
    <meta charset='utf-8'> <!-- 声明文档使用的字符编码 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用 IE 最新版本和 Chrome -->
You can’t perform that action at this time.