Delete local branches that do not exist remotely.
$ git fetch --all --prune; git branch --verbose | grep ": gone]" | awk '{ print $1 }' | xargs --no-tags 1 git branch --delete --force
//https://www.carbondesignsystem.com/components/button/code | |
import styled from 'styled-components' | |
const COLORS = { | |
primary: '#fff', | |
secondary: '#3d70b2', | |
tertiary: '#5a6872', | |
ghost: '#3d70b2', | |
danger: '#e0182d', |
'use strict'; | |
const internals = {}; | |
exports.errors = { | |
root: 'value', | |
key: '"{{!key}}" ', | |
messages: { | |
wrapArrays: true | |
}, |
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |