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.
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
export PATH | |
#定义变量 | |
#授权文件自动生成url | |
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php | |
#安装包下载地址 | |
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz |
Visit my blog or connect with me on Twitter
git init
or
# encoding=utf-8 | |
import os | |
import re | |
import urllib2 | |
from bs4 import BeautifulSoup as bs | |
class Crawler(object): | |
def __init__(self): | |
super(Crawler, self).__init__() | |
self.album_prefix = 'https://mm.taobao.com/self/album/open_album_list.htm?_charset=utf-8&user_id%20={0}&page={1}' |
(function(){ | |
"use strict"; | |
/*Reader View插件id*/ | |
const RV_EXT_ID = 'iibolhpkjjmoepndefdmdlmbpfhlgjpl'; | |
const MSG_PRE = 'ReaderView.'; | |
/** | |
* 插件与插件间、插件与插件页面脚本间数据通信 |