This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name OpenGG.Clean.Player | |
// @namespace http://OpenGG.me | |
// @description OpenGG.Clean.Player | |
// @version 1.26 | |
// @updateURL https://userscripts.org/scripts/source/120679.meta.js | |
// @downloadURL https://userscripts.org/scripts/source/120679.user.js | |
// @match http://*/* | |
// @match https://*/* | |
// @exclude http://www.kuaipan.cn/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global projectDir | |
set homePath to POSIX path of (path to home folder) | |
set projectDir to homePath & "Ruby_app/Blog" | |
on goToProjectDir() | |
return "cd " & projectDir | |
end goToProjectDir | |
on serveWithJekyll() | |
return "bundle exec jekyll serve --watch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
".idea" | |
], | |
"highlight_line": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 截取指定长度的中英文混合字符串 | |
* @param {String} str 待截取的字符串 | |
* @param {Number} n 截取长度(中文字符为英文的 double) | |
* @return {String} 截取后的字符串 | |
*/ | |
function subString(str, n) { | |
var r = /[^\x00-\xff]/g; | |
var m; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+shift+."], "command": "expand_selection", "args": {"to": "scope"} }, | |
{ "keys": ["alt+/"], "command": "auto_complete" }, | |
{ "keys": ["alt+/"], "command": "replace_completion_with_auto_complete", "context": | |
[ | |
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (d, s, f) { | |
s = d.createElement('script'); | |
s.async = 'async'; | |
s.src = 'path/to/file.js'; | |
f = d.getElementsByTagName('script')[0]; | |
f ? f.parentNode.insertBefore(s, f) : d.body.appendChild(s); | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 界面引导帮助 | |
*/ | |
function Guide() { | |
this.target_arr = []; | |
this.intervalID = null; | |
} | |
Guide.prototype.init = function() { | |
var _this = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ping(ip) { | |
var img = new Image(); | |
var start = new Date().getTime(); | |
img.src = 'http://' + ip + '?t=' + start; | |
var flag = false; | |
img.onload = function () { | |
flag = true; | |
console.log('ok'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 对日期进行格式化 | |
* @param date 要格式化的日期 | |
* @param format 进行格式化的模式字符串 | |
* @return String | |
*/ | |
function dateFormat(date, format) { | |
if(format === undefined){ | |
format = date; | |
date = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publishing paths | |
http_path = "/" | |
http_images_path = "/assets/images" | |
http_generated_images_path = "/assets/images" | |
http_fonts_path = "/assets/fonts" | |
css_dir = "source/assets/css" | |
# Local development paths | |
sass_dir = "sass" | |
images_dir = "source/assets/images" |
OlderNewer