As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
// Thanks @trusktr | |
var requestSync = Meteor.wrapAsync(function(url, callback) { | |
request(url, function(error, response, body) { | |
callback(error, {response: response, body: body}) | |
}) | |
}); | |
var result = requestSync("http://google.com"); | |
console.log(result.response, result.body); |
// npm install graphql graphql-tools graphql-subscriptions | |
const { PubSub, SubscriptionManager } = require('graphql-subscriptions'); | |
const { makeExecutableSchema } = require('graphql-tools'); | |
// Our "database" | |
const messages = []; | |
// Minimal schema | |
const typeDefs = ` | |
type Query { |
const handlers = { | |
number: value => <NumberDisplay>{value}</NumberDisplay> | |
currency: value => <CurrencyDisplay customProps value={value} /> | |
time: value => <TimeDisplay time={value} customProps /> | |
date: value => <DateDisplay date={value} showTime={false} /> | |
default: value => value, | |
}; | |
const displayData = (type, value) => { | |
const handler = handlers[type] || handlers.default; |