I hereby claim:
- I am krzysu on github.
- I am krzysu (https://keybase.io/krzysu) on keybase.
- I have a public key ASCafPvulYf8nWCDXAdo7G8f4qra8h4Mx-n9tpTy-16D9go
To claim this, I am signing this object:
naming conventions: | |
CRUD: create, read, update, delete | |
REST: post, get (-> fetch), put, delete | |
Database style: insert, select, update, delete |
I hereby claim:
To claim this, I am signing this object:
# path ~/.ssh/config | |
Host * | |
AddKeysToAgent yes | |
UseKeychain yes | |
Host prd | |
Hostname prd.long.name.hostname.com | |
ForwardAgent yes | |
IdentityFile ~/.ssh/id_rsa_encrypted |
getAllCoordinates : Int -> List ( Int, Int ) | |
getAllCoordinates size = | |
let | |
lengthAsArray = | |
List.range 0 (size - 1) | |
in | |
lengthAsArray | |
|> List.concatMap | |
(\x -> | |
List.map |
# for local branches | |
git branch -avv | grep "release-2014" | awk '{ print $1 }' | xargs -n 1 git branch -D | |
# by branch name pattern | |
git branch -avv | grep "release-2014" | awk '{ gsub(/remotes\/origin\//, ""); print $1 }' | xargs -n 1 git push origin --delete | |
# merged to master | |
git branch -a --merged | egrep -v "(^\*|master|dev)" | awk '{ gsub(/remotes\/origin\//, ""); print $1 }' | xargs -n 1 git push origin --delete | |
# by commit date |
[user] | |
name = NAME | |
email = EMAIL | |
[alias] | |
co = checkout | |
ci = commit | |
s = status | |
br = branch | |
pl = pull --rebase --autostash |
vagrant ssh -c "echo '$(cat ~/.gitconfig)' >.gitconfig" |
import React, { Component } from 'react'; | |
import Select from 'react-select' | |
import SortableItem from './SortableItem'; | |
import SortableContainer from './SortableContainer'; | |
import update from 'react/lib/update'; | |
const items = [ | |
{ value: '1', label: 'One' }, | |
{ value: '2', label: 'Two' }, | |
{ value: '3', label: 'Three' }, |
mogrify -quality 80% -resize 50% *.jpg |
@mixin arrow($color, $width) { | |
display: block; | |
position: relative; | |
&:before, | |
&:after { | |
content: ' '; | |
border: solid transparent; | |
height: 0; | |
width: 0; |