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 release = Machine( { | |
id: "release", | |
initial: "start", | |
context: { | |
level: "patch", | |
tag: "0.0.1", | |
fixVersion: "SSR_release_v0.0.1", | |
}, | |
states: { | |
start: { |
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
$gridPad: 20px | |
$gridColLen: 12 | |
.g-row | |
display: flex | |
flex-wrap: wrap | |
width: calc(100% + #{$gridPad}) | |
margin-left: -#{$gridPad / 2} | |
margin-right: -#{$gridPad / 2} | |
.g-col |
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
git reset --soft HEAD^ |
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
window.onkeydown = function(e) { | |
if (e.keyCode == 27) { | |
var focused = document.activeElement; | |
if (focused.tagName == 'INPUT' || focused.tagName == 'TEXTAREA') { | |
focused['blur']() | |
} | |
} | |
} |
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
;(function() { | |
const baseToggle = (target, fn = () => {}) => { | |
let button = target.closest('[data-tggl-button]') | |
if (!button) return | |
let hideClass = button.getAttribute('data-tggl-button') || 'hide' | |
let parent = button.closest('[data-tggl-parent]') | |
if (!parent) return | |
let items = parent.querySelectorAll('[data-tggl-item]') |
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
;(function() { | |
const elems = document.querySelectorAll('[data-tooltip]') | |
const tip = document.createElement('div') | |
tip.classList.add('tooltip') | |
document.body.append(tip) | |
const mouseMove = (e) => { | |
let { clientX, clientY } = e | |
let current | |
elems.forEach(elem => { |
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 http = require('http'); | |
const httpProxy = require('http-proxy'); | |
const options = { | |
changeOrigin: true, | |
protocol: 'https', | |
target: 'https://yobit.net', | |
host: 'yobit.net', | |
}; |
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
import * as d3 from 'd3' | |
import c from '../styles.css' | |
const svg = d3.select('svg') | |
const margin = { top: 20, right: 20, bottom: 110, left: 40 } | |
const width = +svg.attr('width') - margin.left - margin.right | |
const height = +svg.attr('height') - margin.top - margin.bottom | |
const margin2 = { top: 430, right: 20, bottom: 30, left: 40 } | |
const height2 = +svg.attr('height') - margin2.top - margin2.bottom |
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
import { GraphQLResolveInfo } from 'graphql' | |
const unique = (arr = []) => { | |
let obj = {} | |
for (let i = 0;i < arr.length;i++) { | |
let str = arr[i] | |
if (!!str) obj[str] = true | |
} | |
return Object.keys(obj) | |
} |
NewerOlder