I hereby claim:
- I am schovi on github.
- I am schovi (https://keybase.io/schovi) on keybase.
- I have a public key whose fingerprint is 8878 CAC3 5ECC CD60 3944 44E5 72C6 AEDF 3CE2 60A2
To claim this, I am signing this object:
FROM debian:jessie | |
########## | |
# Install utils | |
RUN apt-get update && \ | |
apt-get install -y \ | |
git \ | |
make \ | |
dh-autoreconf \ | |
apt-transport-https |
I hereby claim:
To claim this, I am signing this object:
const abortableFetch(url, options) { | |
var abort; | |
const promise = new Promise((resolve, reject) => { | |
abort = reject | |
fetch(url, options).then(resolve, reject) | |
}) | |
promise.abort = abort |
exports[`Datepicker works 1`] = ` | |
<div | |
className="datepicker datepicker-active"> | |
<EventListener | |
onClick={[Function]} | |
onKeyUp={[Function]} | |
target="document" /> | |
<div | |
className="datepicker-prev" | |
onClick={[Function]} /> |
counter = 0 | |
def drop_empty_from_start lines | |
lines.drop_while do |line| | |
!(line =~ /[^\s\t\n]+/) | |
end | |
end | |
def fix content | |
lines = content.split("\n") |
# migration | |
def up | |
execute "CREATE TYPE roles AS ENUM ('worker', 'manager', 'boss');" | |
end | |
# model | |
class Employee < ActiveRecord::Base | |
include PostgresEnum | |
postgres_enum :role | |
end |
import React from 'react'; | |
const IGNORE_CLASS = 'ignore-react-onclickoutside'; | |
export default function clickOutside(BaseComponent) { | |
return class ClickOutside extends React.Component { | |
static displayName = `${BaseComponent.name}ClickOutside`; |
# Remove local merged branches | |
git branch --merged master | grep -v '\Wmaster$' | xargs -n 1 git branch -d | |
# Remove remote origin merged branches | |
git branch -a --merged remotes/origin/master | grep 'remotes/origin/' | grep -v '\Wmaster$' | awk '{gsub(/remotes\//, ""); print}' | xargs -n 1 git branch -d -r |
de: | |
models: &models | |
user: 'Benutzer' | |
attributes: &attributes | |
user: | |
email: 'E-Mail' | |
errors: &errors |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.