Page MenuHomePhabricator

D13093.diff
No OneTemporary

D13093.diff

Index: .arcconfig
===================================================================
--- /dev/null
+++ .arcconfig
@@ -0,0 +1,3 @@
+{
+ "phabricator.uri" : "https://secure.phabricator.com/"
+}
Index: .netrwhist
===================================================================
--- .netrwhist
+++ .netrwhist
@@ -1,7 +1,9 @@
let g:netrw_dirhistmax =10
-let g:netrw_dirhist_cnt =5
-let g:netrw_dirhist_1='/Users/o/tb/gitlab/mbis/deliver/src/js'
-let g:netrw_dirhist_2='/usr/local/Cellar/nginx'
-let g:netrw_dirhist_3='/Users/o/.ssh'
-let g:netrw_dirhist_4='/usr/local/Cellar'
-let g:netrw_dirhist_5='/usr/local/lib/node_modules/vmarket/server'
+let g:netrw_dirhist_cnt =7
+let g:netrw_dirhist_1='/Users/o/tb/gitlab/contract/.package'
+let g:netrw_dirhist_2='/Users/o/tb/gitlab/contract/build/widget/auto_dialog'
+let g:netrw_dirhist_3='/Users/o/test-hexo/themes/landscape'
+let g:netrw_dirhist_4='/Users/o/test-hexo/themes/landscape/source'
+let g:netrw_dirhist_5='/Users/o/test-hexo/scaffolds'
+let g:netrw_dirhist_6='/Users/o/5.882bus.com/source/tags'
+let g:netrw_dirhist_7='/Users/o/5.882bus.com/themes/882bus'
Index: _vimrc
===================================================================
--- _vimrc
+++ _vimrc
@@ -45,6 +45,7 @@
"custom filetype
au BufNewFile,BufRead *.xtpl,*.ejs,*.jade setf html
+au BufNewFile,BufRead *.less,*.sass,*.stylus setf css
"解决输入法的困扰
se iminsert=0
Index: plugin/template/js.js
===================================================================
--- plugin/template/js.js
+++ plugin/template/js.js
@@ -5,4 +5,5 @@
*/
/*!*/
+"use strict";
#cursor#
Index: plugin/template/sw.html
===================================================================
--- plugin/template/sw.html
+++ plugin/template/sw.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
-<title>title | http://omiga.org/</title>
+<title>#cursor#</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="robots" content="all" />
Index: snippets/css.snippets
===================================================================
--- snippets/css.snippets
+++ snippets/css.snippets
@@ -107,6 +107,8 @@
background-repeat:repeat-y;${1}
snippet bgp
background-position:${1:0} ${2:0};${3}
+snippet bgs
+ background-size:${1:0} ${2:0};${3}
snippet h
height:${1}px;${2}
snippet ha
@@ -235,6 +237,8 @@
overflow:scroll;${1}
snippet ov
overflow:visible;${1}
+snippet toe
+ text-overflow:ellipsis;${1}
snippet pos
position:static;${1}
snippet poa
Index: snippets/javascript.snippets
===================================================================
--- snippets/javascript.snippets
+++ snippets/javascript.snippets
@@ -1,6 +1,6 @@
# wondger@gmail.com
snippet us
- 'use strict';
+ "use strict";
# Prototype
snippet win
window
@@ -39,20 +39,19 @@
${1:/* condition */} ? ${2:a} : ${3:b}
# switch
snippet switch
- switch (${1:expression}) {
- case '${3:case}':
- ${4:// code}
- break;
- ${5}
- default:
- ${2:// code}
+ switch (${1}) {
+ case "${3}":
+ ${4}
+ break;
+ ${5}
+ default:
+ ${2}
}
# case
snippet case
- case '${1:case}':
- ${2:// code}
- break;
- ${3}
+ case "${1}":
+ ${2}
+ break;${3}
# for (...) {...}
snippet for
for (var ${1:i} = 0; $1 < ${2:Things}.length; $1${3:++}) {
@@ -87,10 +86,10 @@
setInterval(${1},${2:10});${3}
# Get Elements
snippet gett
- getElementsByTagName('${1}')${2}
+ getElementsByTagName("${1}")${2}
# Get Element
snippet geti
- getElementById('${1}')${2}
+ getElementById("${1}")${2}
snippet try
try {
${1}
@@ -104,20 +103,49 @@
forEach(function(${1}) {
${2}
});
+snippet df
+ define(function(require, exports, module) {
+ ${1}
+ });
# console
snippet debug
try {
- console.debug(${1});
+ console.debug(${1});
}
catch (e) {${2}}
snippet dir
try{
- console.dir(${1});
+ console.dir(${1});
}
catch (e) {${2}}
# KISSY
snippet KISSY.add
- KISSY.add('${1:}', function(S) {
+ KISSY.add("${1:}", function(S) {
+ var E = S.require("event");
+
+ var $1 = function (${2:cfg}) {
+ if (!(this instanceof $1)) {
+ return new $1($2);
+ }
+
+ this.$2 = $2 = $2 || {};
+
+ ${3}
+
+ this._init();
+ };
+
+ S.augment($1, E.Target, {
+ _init: function() {
+ }
+ });
+
+ return $1;
+ }, {
+ requires: ["event"]
+ });
+snippet KISSY.ad
+ KISSY.add(function(S) {
var E = S.require("event");
var $1 = function (${2:cfg}) {
@@ -125,7 +153,7 @@
return new $1($2);
}
- $2 = $2 || {};
+ this.$2 = $2 || {};
${3}
@@ -142,11 +170,11 @@
requires: ["event"]
});
snippet KISSY.use
- KISSY.use('${1:}', function (S, $1) {
+ KISSY.use("${1:}", function (S, $1) {
${2}
});
snippet S.use
- S.use('${1:}', function(S, $1) {
+ S.use("${1:}", function(S, $1) {
${2}
});
snippet KISSY.ready
@@ -162,20 +190,20 @@
// 开启自动 combo 模式
combine: true,
// kissy 库内置模块的时间戳
- tag: '${1}',
+ tag: "${1}",
// kissy 的基准路径
- base: '${2}',
+ base: "${2}",
packages: {
${3}: {
- base: '${4}'
- tag: '${5}'
- debug: '${6}'
+ base: "${4}"
+ tag: "${5}"
+ debug: "${6}"
}
},
modules: {
- '{$7}': {
- tag: '${8}'
- requires:['${9}', '${10}']
+ "{$7}": {
+ tag: "${8}"
+ requires:["${9}", "${10}"]
},
}
});
@@ -202,6 +230,19 @@
debugger;${1}
snippet cslog
console.log(${1});
+snippet res.suc
+ res.json({
+ success: ${1},
+ data: ${2}
+ });${3}
+snippet res.err
+ res.json({
+ success: ${1},
+ code: ${2},
+ message: ${3}
+ });${4}
+snippet res.sd
+ res.send(${1}, ${2});${3}
# q
snippet deferred
var deferred = Q.defer();
@@ -210,19 +251,25 @@
return deferred.promise;
snippet fcall
Q.fcall(function() {
- ${1}
+ ${1}
});
+snippet all
+ Q.all(${1});
snippet then
then(function(${1}) {
- ${2}
+ ${2}
+ })
+snippet spread
+ spread(function(${1}) {
+ ${2}
})
snippet fail
fail(function(e) {
- ${1}
+ ${1}
});
snippet tf
.then(function(${1}) {
- ${3}
+ ${3}
})
.fail(function(${2}) {
});
@@ -233,17 +280,22 @@
# mocha
snippet dscrb
describe('${1}', function(done) {
- ${2}
+ ${2}
});
snippet it
it('${1}', function(done) {
- ${2}
+ ${2}
});
snippet bf
before(function(done) {
- ${1}
+ ${1}
});
-snippet aft
+snippet af
after(function(done) {
- ${1}
+ ${1}
});
+#koa
+snippet gf
+ function *() {
+ ${1}
+ }

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 13, 8:03 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
17405516
Default Alt Text
D13093.diff (6 KB)

Event Timeline