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
// es6 | |
export function injector (_text, _classPrefix) { | |
let text | |
let inject = [] | |
const prefix = _classPrefix || 'char-' | |
if (typeof (_text) !== 'string') { | |
text = _text.toString() | |
} else { | |
text = _text | |
} |
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
// `evm_` ONLY works in the testrpc `development` env | |
// `evm_mine` is not a standard web3/eth call | |
function advanceBlock() { | |
return new Promise(resolve => { | |
web3.currentProvider.sendAsync({ | |
method: "evm_mine", | |
jsonrpc: "2.0", | |
id: new Date().getTime() | |
}, function (error, result) { | |
if (error) { |
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
<!-- <parallax> | |
<img class="color" src="static/img/rainbow_main_45q.jpg"> | |
</parallax> --> | |
<template> | |
<div :class="[sectionClass]" ref="container"> | |
<!-- foreground-content --> | |
<div | |
class="foreground-content" | |
ref="foreground"> | |
<slot name="foreground"></slot> |
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
<template lang="pug"> | |
a.button.bookmark-action( | |
@click.prevent='bookmarkAction', | |
:href='href', | |
:rel='rel', | |
:title='title' | |
) | |
.svg-icon.small.fill-cream( | |
v-once='', | |
v-html='icon' |
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
export function getGCD (a, b) { | |
for (let c; b; a = b, b = c) { | |
c = a % b | |
} | |
return a | |
} |
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
<template lang="pug"> | |
a.button.icon-link( | |
target='_blank', | |
:href='route', | |
:title='title' | |
) | |
.svg-icon.small.fill-cream( | |
v-once='', | |
v-html='icon' | |
) |
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
<template lang="pug"> | |
a.button.bookmark( | |
@click.prevent='bookmarkAction', | |
:href='href', | |
:rel='rel', | |
:title='title' | |
) | |
.svg-icon( | |
v-once='', | |
v-html='icon' |
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
# undo commit and REVERT the files to the last HEAD | |
git reset --hard HEAD~1 | |
# undo commit but PRESERVE the files before the last commit | |
git reset HEAD~1 |
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
## | |
## pivx.conf configuration file. Lines beginning with # are comments. | |
## | |
enablezeromint=0 | |
# Network-related settings: | |
# Run on the test network instead of the real pivx network. | |
#testnet=0 |
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
#!/bin/bash | |
ifconfig en0 inet | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" | sed -n 1p |