Skip to content

Instantly share code, notes, and snippets.

View klausbayrhammer's full-sized avatar

Klaus Bayrhammer klausbayrhammer

View GitHub Profile
const firstObject = {
attribute: 1
}
const secondObject = {
firstAttribute: 1,
secondAttribute: 2
}
const thirdObject = {
firstAttribute: 1,
secondAttribute: 2,
@klausbayrhammer
klausbayrhammer / single-line-js-object-initialization.js
Last active February 21, 2021 21:18
single line object initialization
const firstObject = {attribute: 1}
const secondObject = {firstAttribute: 1, secondAttribute: 2}
const thirdObject = {firstAttribute: 1, secondAttribute: 2, thirdAttribute: 3}
@klausbayrhammer
klausbayrhammer / cherry pick to multiple branches
Created October 10, 2014 12:52
cherry-pick a commit to multiple branches
#!/bin/bash
function merge {
git pull --rebase
git cherry-pick -x $1
git status
echo "Commit? (y/n):"
read XN