This file contains hidden or 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
<div class="cover"> | |
<div class="bg"></div> | |
<div class="title"> | |
<div class="logo"> | |
</div> | |
<div class="text"> | |
This is the title | |
</div> | |
<div class="desc"> |
This file contains hidden or 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
// dec2hex :: Integer -> String | |
function dec2hex (dec) { | |
return ('0' + dec.toString(16)).substr(-2); | |
} | |
// generateId :: Integer -> String | |
function generateId (len = 40) { | |
const arr = new Uint8Array(len / 2); | |
window.crypto.getRandomValues(arr); | |
return Array.from(arr, dec2hex).join(''); |
This file contains hidden or 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 pbcopy(data) { | |
const proc = childProcess.spawn('pbcopy'); | |
proc.stdin.write(data); proc.stdin.end(); | |
} |
This file contains hidden or 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
A15B-A7F3-A6A4-23 |
This file contains hidden or 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
body { | |
font-family:"Hiragino Sans GB","华文细黑","STHeiti","微软雅黑","Microsoft YaHei",SimHei,"Helvetica Neue",Helvetica,Arial,sans-serif !important; | |
} |
This file contains hidden or 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
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 2; | |
gzip_min_length 1100; | |
gzip_buffers 4 8k; | |
gzip_proxied any; | |
gzip_types | |
# text/html is always compressed by HttpGzipModule | |
text/css | |
text/javascript |
This file contains hidden or 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 webpack = require('webpack'); | |
var path = require('path'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
// Webpack Config | |
var webpackConfig = { | |
entry: { | |
'polyfills': './src/polyfills.browser.ts', | |
'vendor': './src/vendor.browser.ts', |
This file contains hidden or 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
①商业特色街 | |
福州路文化街、东台路古玩街、多伦路文化名人街、北京东路生产资料街、茂名南路文化休闲街、黄河路美食休闲街、乍浦路美食街、七浦路服饰街、衡山路休闲娱乐街、云南路美食街、梅川路欧亚休闲街 | |
②特色商品市场 | |
福佑路小商品市场、铜川路水产市场、军工路东方国际水产中心 | |
③十大商业中心 |
This file contains hidden or 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
nvm() { | |
unset -f nvm | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
nvm "$@" | |
} | |
node() { | |
unset -f node | |
export NVM_DIR=~/.nvm |
This file contains hidden or 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
# format json in vim | |
:%!python -m json.tool |