- Fire up Rambox
- Switch to the Configuration tab (the first tab on the topbar in Rambox)
- In the Enabled Services section, find the Slack instance you want to add MathJax to, and click its settings cog.
- Expand the Advanced section at the bottom of the settings panel that pops up.
- Copy the contents of the script above, and paste it into the Custom Code text area.
- Save the settings and enjoy MathJaxiness
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 LifecycleDemo extends React.Component { | |
constructor() { | |
super() | |
this.handleClick = this.handleClick.bind(this); | |
} | |
handleClick() { | |
this.props.onClose(); | |
} |
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
let lastRequestId = 0 | |
const searchRequest = (query) => { | |
const requestId = ++lastRequestId | |
// fetch results somehow, and then... | |
return fetchSearchResults(query) | |
.then(results => { | |
if (requestId === lastRequestId) { | |
performStateUpdate(results) // do your state updates here |
I hereby claim:
- I am jimmed on github.
- I am jimmed (https://keybase.io/jimmed) on keybase.
- I have a public key ASDa85XFQBUnn-Tw4tps-FhtabjyVnGSCHYZt-M1R9phRwo
To claim this, I am signing this object:
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 cx from 'classnames' | |
import capitalize from './capitalize' | |
/** | |
* It's `suitcx`. Like `cx`, but for suitCSS | |
* | |
* @param {string} parent - The main suitCSS class, i.e. `ChatItem` or `ChatItem-message`. | |
* @param {Object} [modifiers] - The suitCSS modifiers to apply, where each key is the name of the modifier applied. For each key/value pair of the object; if a value is a string, the modifier name will be the value appended to the key (in camel-case); otherwise, the modifier will only be added if the value is truthy. | |
* @param {Object} [state] - The suitCSS state to apply, where each key is the name of the state to be applied, and the value used to determine whether to apply the state. | |
* |
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
var toString = Function.prototype.toString | |
var hasOwnProperty = Object.prototype.hasOwnProperty | |
var regexpCharacters = /[\\^$.*+?()[\]{}|]/g | |
var regexpIsNativeFn = toString.call(hasOwnProperty) | |
.replace(regexpCharacters, '\\$&') | |
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') | |
var regexpIsNative = RegExp('^' + regexpIsNativeFn + '$') | |
function toSource (func) { | |
if (!func) return '' | |
try { |
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
// Make sure you added pm2 as a dependency in your package.json | |
// Then in your Procfile, do a simple `node bootstrap.js` | |
var pm2 = require('pm2'); | |
var MACHINE_NAME = 'hk1'; | |
var PRIVATE_KEY = 'z1ormi9vomgq66'; | |
var PUBLIC_KEY = 'oa0m7nuhdfibi16'; | |
var instances = process.env.WEB_CONCURRENCY || 1; // Set by Heroku |
- Copy the code above (I recommend clicking the 'Raw' button to get at it more easily)
- Open all your music
- Zoom out as far as you can.
- Open up the Menu > Tools > Developer > JavaScript Console
- Paste in the code, and hit Enter.
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
# Aliases to common git methods | |
function gs; git status --short $argv; end; | |
function gd; git diff --color $argv; end; | |
function gf; git fetch -p; end; | |
function gpl; git pull $argv; end; | |
function gps; git push $argv; end; | |
function gch; git checkout $argv; end; | |
function gb; git branch $argv; end; | |
function ga; git add $argv; end; | |
function gco; git commit -m $argv; end; |
NewerOlder