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
"linebreak-style": [0, "error", "windows"], | |
"no-restricted-syntax": 0, // Use Object.{keys,values,entries}, and iterate over the resulting array 爱尖子关掉这个。但期望还是开启。后期待定吧 | |
"import/no-unresolved": 0, // 关闭import文件的后缀名校验,因为webpack配置的别名,es6可以找到对应的模块,爱尖子项目可以关闭这个 | |
"comma-dangle": ["error", "never"], //是否允许对象中出现结尾逗号 | |
"no-cond-assign": 2, //条件语句的条件中不允许出现赋值运算符 | |
"no-console": 2, //不允许出现console语句 | |
"no-constant-condition": 2, //条件语句的条件中不允许出现恒定不变的量 | |
"no-control-regex": 2, //正则表达式中不允许出现控制字符 | |
"no-debugger": 2, //不允许出现debugger语句 |
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
const Apify = require('apify'); | |
const puppeteer = require('puppeteer'); | |
const { typeCheck } = require('type-check'); | |
const { log, dir } = console; | |
const INPUT_TYPE = `{ | |
searchQuery: String | |
}`; |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: amix the lucky stiff | |
" http://amix.dk - amix@amix.dk | |
" | |
" Version: 3.6 - 25/08/10 14:40:30 | |
" | |
" Blog_post: 发布的博客地址 | |
" http://amix.dk/blog/post/19486#The-ultimate-vim-configuration-vimrc | |
" Syntax_highlighted: 带有语法高亮的html版本 |
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
$('#JaxxLogo').on('click', function () { | |
openPopupInNewWin() | |
// -- open popup window -- start | |
var _bg_view = null ; | |
function getBackgroundView() { | |
if (!_bg_view) { | |
_bg_view = chrome.extension.getBackgroundPage(); | |
if (!_bg_view) { | |
var views = chrome.extension.getViews({}); | |
for (var i = 0, l = views.length; i < l; i++) { |
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
const [all, year, month, day] = /([0-9]*)\-([0-9]*)\-([0-9]*)/.exec('2018-04-03') | |
console.log(all, year, month, day) |
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
// only work in browser environment | |
export const parseUrl = url => { | |
const a = document.createElement('a') | |
a.href = url | |
return { | |
href: a.href, | |
protocol: a.protocol, | |
host: a.host, | |
hostname: a.hostname, |
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
#!/bin/bash | |
[[ $UID == 0 ]] || { echo "run as sudo to install"; exit 1; } | |
if ! [ -x "$(command -v jq)" ]; then | |
echo 'Error: jq is not installed.' >&2 | |
apt install jq -y | |
fi | |
REPO="https://github.com/BurntSushi/ripgrep/releases/download/" | |
RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name) |
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
<template lang="pug"> | |
table | |
tr(v-for="name in Object.keys(table)") | |
th(@click="table[name].expand = !table[name].expand") {{name}} | |
td(v-for="value in table[name].content" v-show="value < 3") {{value}} | |
td(v-for="value in table[name].content" v-show="table[name].expand") | |
span(v-show="value >=3") {{value}} | |
</template> | |
<script> | |
export default { |
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
// First 210 000 blocks reward | |
const start_reward = 50 | |
// The reward is modified every 210000 blocks | |
const reward_interval = 210000 | |
const max_btc = () => { | |
// 50 BTC = 5000000000 Satoshis | |
// Satoshis are the smallest denomination in bitcoin | |
let current_reward = 50 * 10 ** 8 |
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
diff --git a/config/index.js b/config/index.js | |
index 08d4d4d..08e8228 100644 | |
--- a/config/index.js | |
+++ b/config/index.js | |
@@ -13,7 +13,7 @@ | |
proxyTable: {}, | |
// Various Dev Server settings | |
- host: 'localhost', // can be overwritten by process.env.HOST | |
+ host: '0.0.0.0', // can be overwritten by process.env.HOST |