This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const babelJest = require('babel-jest'); | |
module.exports = babelJest.createTransformer({ | |
presets: [require.resolve('babel-preset-react-app')], | |
babelrc: false, | |
configFile: false, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get current git branch name | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# Format Terminal input prefix | |
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
class Dropdown extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { isDropdownOpen: false }; | |
this.handleOpen = this.handleOpen.bind(this); | |
this.handleClose = this.handleClose.bind(this); | |
this.handleDropdownClick = this.handleDropdownClick.bind(this); | |
this.handleTogglerClick = this.handleTogglerClick.bind(this); |