I hereby claim:
- I am maxboeck on github.
- I am mxb (https://keybase.io/mxb) on keybase.
- I have a public key whose fingerprint is 2D6B F9EA CA44 6DD6 4A4E 83FF 944E 076E 5FC2 7685
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.1}' |
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontSize": 16, | |
"editor.tabSize": 2, | |
"editor.lineHeight": 28, | |
"editor.formatOnPaste": true, | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, |
// Reusable Focus Trap Method | |
export function createFocusTrap(el, opt = {}) { | |
let isActive = false | |
const focusableElementSelectors = [ | |
'a[href]', | |
'area[href]', | |
'input:not([disabled])', | |
'select:not([disabled])', | |
'textarea:not([disabled])', |
{ | |
"Create a stateless React component": { | |
"prefix": "scomp", | |
"description": "A stateless component", | |
"body": [ | |
"import React from 'react'", | |
"import PropTypes from 'prop-types'", | |
"\nconst $1 = props => {", | |
"\treturn (", | |
"\t\t$0", |
<ul> | |
<li class="card"> | |
<a href="/foo" class="card__link"> | |
<p class="card__title">The Card Title</p> | |
<img class="card__image" src="/some/image.jpg" alt=""> | |
<small class="card__meta">Some category</small> | |
<p class="card_summary">Lorem ipsum, dolor sit amet!</p> | |
</a> | |
</li> |
const allButtons = document.querySelectorAll('button'); | |
const init = btn => { | |
btn.classList.add('is-initialized'); | |
btn.addEventListener('click', () => console.log(btn, 'clicked')); | |
return btn; | |
} | |
Array.from(allButtons, init); | |
/* Custom Selection Color */ | |
::selection { | |
background: #d81e05; | |
color: #ffffff; | |
} | |
::-moz-selection { | |
background: #d81e05; | |
color: #ffffff; |
const allowsTracking = () => { | |
const dnt = | |
window.doNotTrack || | |
navigator.doNotTrack || | |
navigator.msDoNotTrack | |
if (dnt === 1 || dnt === '1' || dnt === 'yes') { | |
return false | |
} | |
if ('msTrackingProtectionEnabled' in window.external) { | |
return !window.external.msTrackingProtectionEnabled() |
#!/bin/sh | |
OLD_MSG=$(git log --format=%B -n1) | |
git commit --amend -m "$OLD_MSG, #$1" |