I hereby claim:
- I am phoomparin on github.
- I am phoomparin (https://keybase.io/phoomparin) on keybase.
- I have a public key ASDbUg3L1z88DBiBPgrJpjlmFMeRFYN0OPrdir3p7FJXRgo
To claim this, I am signing this object:
#!/usr/bin/python3 | |
import sys | |
import math | |
# Figure out the width and height of our grid. | |
def getGridSize(boxes): | |
# For the walls (#) | |
# Exclude the center, times two for both sides, and add the center back. | |
walls = ((boxes - 1) * 2) + 1 | |
return walls + (walls - 1) |
#compdef docker-compose | |
# Description | |
# ----------- | |
# zsh completion for docker-compose | |
# ------------------------------------------------------------------------- | |
# Authors | |
# ------- | |
# * Steve Durrheimer <s.durrheimer@gmail.com> | |
# ------------------------------------------------------------------------- |
#compdef docker dockerd | |
# | |
# zsh completion for docker (http://docker.com) | |
# | |
# version: 0.3.0 | |
# github: https://github.com/felixr/docker-zsh-completion | |
# | |
# contributors: | |
# - Felix Riedel | |
# - Steve Durrheimer |
#compdef docker-machine | |
# Description | |
# ----------- | |
# zsh completion for docker-machine | |
# https://github.com/leonhartX/docker-machine-zsh-completion | |
# ------------------------------------------------------------------------- | |
# Version | |
# ------- | |
# 0.1.1 | |
# ------------------------------------------------------------------------- |
I hereby claim:
To claim this, I am signing this object:
const getCommentsWithTime = () => [...document.querySelectorAll('.UFIComment')].map(comment => { | |
const body = comment.querySelector('.UFICommentActorAndBody') | |
if (body) { | |
return { | |
user: body.querySelector('.UFICommentActorName').innerText, | |
text: body.querySelector('span:nth-child(2)').innerText, | |
timestamp: comment.querySelector('.livetimestamp').innerText | |
} | |
} |
'use strict'; | |
var blacklist = require('./node_modules/react-native/packager/blacklist'); | |
var path = require('path'); | |
/** | |
* Default configuration for the CLI. | |
* | |
* If you need to override any of this functions do so by defining the file |
{ fontWeight: '100' }, // Thin | |
{ fontWeight: '200' }, // Ultra Light | |
{ fontWeight: '300' }, // Light | |
{ fontWeight: '400' }, // Regular | |
{ fontWeight: '500' }, // Medium | |
{ fontWeight: '600' }, // Semibold | |
{ fontWeight: '700' }, // Bold | |
{ fontWeight: '800' }, // Heavy | |
{ fontWeight: '900' }, // Black |
{ | |
"parser": "babel-eslint", | |
"extends": [ | |
"standard", | |
"plugin:react/recommended", | |
"prettier", | |
"prettier/react", | |
"prettier/standard" | |
], | |
"plugins": ["react", "prettier", "standard"], |
function clone(data) { | |
if (Array.isArray(data)) { | |
return data.map(clone) | |
} else if (data.constructor === Object) { | |
return Object.entries(data) | |
.map(([key, value]) => ({[key]: clone(value)})) | |
.reduce((obj, cur) => ({...obj, ...cur})) | |
} | |
return data | |
} |