I hereby claim:
- I am cyio on github.
- I am cyio (https://keybase.io/cyio) on keybase.
- I have a public key ASBZ5oRmctebif42iuuGVFn6j3K68Up0kxs0Et4x3-9jtgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
"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语句 |
const Apify = require('apify'); | |
const puppeteer = require('puppeteer'); | |
const { typeCheck } = require('type-check'); | |
const { log, dir } = console; | |
const INPUT_TYPE = `{ | |
searchQuery: String | |
}`; |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: amix the lucky stiff | |
" http://amix.dk - [email protected] | |
" | |
" 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版本 |
$('#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++) { |
const [all, year, month, day] = /([0-9]*)\-([0-9]*)\-([0-9]*)/.exec('2018-04-03') | |
console.log(all, year, month, day) |
// 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, |
#!/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) |
<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 { |
// 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 |