Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.
- Go to
settings
. - Search for
live templates
. - Under the javascript section you should be able to manage your templates.
// ==UserScript== | |
// @name qq dcos sheet show sort button | |
// @description Show sort button for sheet on docs.qq.com | |
// @name:zh-CN 腾讯文档表格强制显示排序按钮 | |
// @description:zh-CN 腾讯文档表格强制显示排序按钮 | |
// @author Xiaojianfeng | |
// @license MIT | |
// @icon https://pub.idqqimg.com/pc/misc/files/20200904/2eb030216d9362bbc6c0df045857b718.png |
// ==UserScript== | |
// @name 顶部显示知乎专栏文章日期 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author zoffy zhang, bammoo | |
// @match https://zhuanlan.zhihu.com/* | |
// @grant none | |
// ==/UserScript== |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
# Keep in mind that when asking for a `return` after another, only the first one will be output. | |
# This example is meant as a simple starting point, to show how to get the information in the simplest available way. | |
# Google Chrome | |
tell application "Google Chrome" to return URL of active tab of front window | |
tell application "Google Chrome" to return title of active tab of front window | |
# Google Chrome Canary | |
tell application "Google Chrome Canary" to return URL of active tab of front window | |
tell application "Google Chrome Canary" to return title of active tab of front window | |
# Chromium |
-- This script includes examples for using AppleScript to perform several | |
-- useful tasks with Evernote. | |
-- Each section illustrates a chunk of Evernote's AppleScript interface, | |
-- and each section also cleans up after itself. | |
-- Please refer to the Evernote application's scripting dictionary for |
// ids is array | |
var idsCopy = clone(ids); | |
idsCopy.unshift('FIELD', Sequelize.col('id')); | |
db.table.findAll({ | |
where: { id: ids }, | |
order: [[Sequelize.fn.apply(this, idsCopy) ]] | |
}).then(function(users) { | |
}) |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
| 名称 | Unicode | 符号 | | |
| ---- | ------- | ---- | | |
| 间隔号 | 00B7\U+FF0E | ·\. | | |
| 连接号 | 2013 | – | | |
| 破折号 | 2014 | —— | | |
| 引号 | 2018\2019 | ‘’ | | |
| 引号 | 201C\201D | “” | | |
| 省略号 | 2026 | …… | | |
| 顿号 | 3001 | 、 | | |
| 句号 | 3002 | 。 | |
根据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 |