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
#!/bin/bash | |
git commit -a --fixup $1 | |
git rebase --autosquash --interactive $(git show $1^1 --pretty=format:"%h" --no-patch) |
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
class Mutation extends Component { | |
constructor (props, context) { | |
super(props, context) | |
if (!context.client) throw new Error('<ApolloProvider /> required for mutation') | |
this.client = context.client | |
} | |
static contextTypes = { | |
client: PropTypes.object.isRequired | |
} |
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
// set up flashing! | |
function blink($thingToBlink, numberOfTimesToBlink) { | |
if (!numberOfTimesToBlink) | |
numberOfTimesToBlink = -1; | |
$thingToBlink.addClass('blinking'); | |
// blink for 100ms | |
setTimeout(function() { | |
$thingToBlink.removeClass('blinking'); | |
// set it to blink again in 1 seconds | |
if (numberOfTimesToBlink) { // if still times to blink left |