Skip to content

Instantly share code, notes, and snippets.

@mcky
mcky / ToggleBtn.js
Last active December 3, 2015 13:01 — forked from sanjaypoyzer/ToggleBtn.js
Toggle this.state.thing
toggleThing: function(thing){
this.setState({
[thing]: !this.state[thing]
})
}
@mcky
mcky / README.md
Created February 24, 2014 22:30 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.