Show full path in finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
// https://gist.github.com/sebmarkbage/ef0bf1f338a7182b6775#gistcomment-1770639 | |
// "If your higher order component need state or lifecycle methods use this:"" | |
const hoc = C => class _hoc extends React.Component { | |
render() { | |
return <C {...this.props}/>; | |
} | |
} | |
// "If you don´t need state or lifecycle methods on your HOC this snip is more functional:"" | |
const hoc = C => _hoc(props) => { | |
return <C { ...props }/>; |
function forEach(obj, callback) { | |
Object.keys(obj).forEach((item) => { | |
return callback(obj, item) | |
}) | |
} | |
// usage | |
let obj = { a: 1, b: 2, c: 3 } | |
let array = [] | |
forEach(obj, function(obj, item) { |
function recursiveFlatten(array, ignoreObjects = false) { | |
let current = [] | |
const arrayLength = array.length | |
function isType(obj, type = 'Object') { | |
return Object.prototype.toString.call(obj).indexOf(type) !== -1 | |
} | |
for (let i = 0; i < arrayLength; i++) { | |
let result |
// Chapter two - exercise one | |
// c2e1(); | |
function c2e1() { | |
var hashCount = 1; | |
var hashes = '#'; | |
for (;hashCount <= 7; hashCount++) { | |
console.log(hashes); | |
hashes += '#'; | |
} | |
} |
// To reclaim ownership of the .npm directory execute | |
sudo chown -R $(whoami) ~/.npm |
sudo nano ~/.bash_profile | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='\e[0;35m⌘\e[0;34m \w/\e[0m\e[0;32m$(parse_git_branch)\e[0m ' | |
alias projectlt3="cd ~/Sites/lt3-development/" |
Images
alt="null"
and do not provide a title
attribute to mark as safely ignore for Assistive Technology.Anchors
/** | |
* | |
* Equal Height Columns | |
* | |
* Horizontally Even Columns | |
* | |
* @param {object} | |
* @param {boolean} 'responsive' | |
* @param {integer} 'responsiveDelay' | |
* @param {string} 'bindTo' |