- github [52.74.223.119]
- csdn.net [47.95.47.253]
- jianshu.com [106.75.17.181]
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
#!/usr/bin/ruby | |
# -*- coding: UTF-8 -*- | |
# 2018-11-07 15:40 | |
task :newart,[:article,:title,:categories,:tags,:description] do |t,args| | |
time = Time.new #Get new time | |
timeinfos = time.to_s.split(" ") | |
path ="_posts/" | |
filename= args["article"].gsub(" ","-") | |
suffix = ".markdown" | |
newfile = path+timeinfos[0]+"-"+filename+suffix |
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
def good: | |
print("good") |
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
var link = $(link) //把元素绑定到JQuery对象 | |
//console.log(link.next()) //下一个兄弟节点 parent() ,children() | |
var downChild = link.next() | |
downChild.slideToggle() // 当点击按钮,显示或隐藏元素 |
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 关于web gists 的装饰 | |
// @name:en web gists decoration | |
// @namespace https://github.com/abearxiong/ | |
// namespace https://gists.github.com/ | |
// @version 1.0.0 | |
// @icon https://github.githubassets.com/favicon.ico | |
// @description 悬浮显示目录 | |
// @homepageURL https://github.com/abearxiong/web-gists-decoration | |
// homepage https://gist.github.com/abearxiong/dab578c4c075993c16757f774ab09927/ |
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 sleep(ms){ | |
return new Promise((resolve)=>setTimeout(resolve,ms)); | |
} | |
async function test(){ | |
var temple=await sleep(1000); | |
console.log(1111) | |
return temple | |
} | |
test(); |
Usage: grep [OPTION]... PATTERN [FILE]...
Search for PATTERN in each FILE.
Example: grep -i 'hello world' menu.h main.c
Pattern selection and interpretation:
-E, --extended-regexp PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression (default)
-P, --perl-regexp PATTERN is a Perl regular expression
OlderNewer