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
utils = require('utils') | |
fs = require('fs') | |
casper = require("casper").create( | |
verbose: true | |
logLevel: "warning" # 想看更详细的log的话可以改成"debug" | |
pageSettings: | |
loadImages: false | |
loadPlugins: false | |
userAgent: "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } |
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
" Prettify coffee require statement | |
" Maintainer: asnowwolf<[email protected]> | |
" Last Change: 2014-01-01 | |
if exists("g:loaded_require_formatter") | |
finish | |
endif | |
let g:loaded_require_formatter = 1 | |
function s:format() |
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
PORT=5566 | |
ssh_server='ubuntu@crmdev' | |
# using mac | |
if [[ -n `which pbcopy` ]]; then | |
echo "@Mac" | |
copy_command='pbcopy' | |
elif [[ -n `which xsel` ]]; then | |
echo "you can use xsel on ubuntu" | |
copy_command='xsel' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>三角测试</title> | |
<style id="jsbin-css"> | |
.dropdown a { | |
padding: 10px; | |
background: #aa4599; | |
position: relative; |
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
if exists("g:loaded_require_formatter") | |
finish | |
endif | |
let g:loaded_require_formatter = 1 | |
"Function: :format | |
"Desc: align the require statement | |
" | |
func! s:format() | |
python << EOF |
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
{"lastUpload":"2021-10-16T13:02:35.750Z","extensionVersion":"v3.4.3"} |
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 the size of files under current directory(recursively) in bytes, and sort them in numeric order | |
find . | xargs -I _ stat -f "%z %N" _ | sort -n |
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/env bash | |
cat remote_branches.txt | xargs -I 'Branch' git push origin :Branch |
OlderNewer