Skip to content

Instantly share code, notes, and snippets.

View lazyTai's full-sized avatar

刘明泰 lazyTai

View GitHub Profile
@neilcarpenter
neilcarpenter / gist:8979ea9ed91b10e36af9
Created March 5, 2015 11:03
Enable Emmet in .JSX files, using Babel JSX Syntax highlighter
// add to Preferences > Key Bindings - User
// see http://stackoverflow.com/a/26619524 for context
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"
@hehongwei44
hehongwei44 / isEmpty.js
Created July 3, 2014 09:53
判断输入的参数是否为空
/**
*
* @Dependence : https://gist.github.com/hehongwei44/3e167cfcda47d4c8051a#file-extendstringprototype-js
* @description : 判断输入的参数是否为空
* @return : true表示为输入参数为空
*
*/
var isEmpty = function (str) {
//空引用 空字符串 空输入
return str == null || typeof str == "undefined" || str.trim() == "" ? true : false;
@Flet
Flet / gist:5447732
Created April 23, 2013 21:54
Sublime Text: Eclipse Shortcuts keymap
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },