Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| First, a script to ensure tmux is running how we like it: | |
| $ cat start-tmux | |
| #!/bin/bash | |
| if ! tmux has-session -t irssi >/dev/null 2>&1 ; then | |
| tmux -2 new-session -d -n irssi -s irssi irssi | |
| fi | |
| if ! tmux has-session -t irssi; then |
| #!/usr/bin/env python3 | |
| import sys | |
| import getopt | |
| from PIL import Image | |
| xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
| (0, (0x00, 0x00, 0x00)), # SYSTEM | |
| (1, (0x80, 0x00, 0x00)), # SYSTEM | |
| (2, (0x00, 0x80, 0x00)), # SYSTEM | |
| (3, (0x80, 0x80, 0x00)), # SYSTEM |
| In this ZK demo, a partition places the primary on the minority component. All | |
| operations time out while the cluster converges on a new primary, at which | |
| point three clients (talking to the three nodes in the majority component) can | |
| proceed again. When the partition is healed, the two minority nodes can begin | |
| accepting writes again. As with single-node Postgres, Zookeeper's client | |
| protocol and ZAB both allow for false negatives (timeouts may actually succeed) | |
| but not false positives (every successful write *will* be present in the final | |
| set.) | |
| HOW TO READ THIS CHART: |
| require 'capybara/firebug' | |
| # Disable Webmock if needed. | |
| WebMock.disable_net_connect!(allow_localhost: true) | |
| # Same thing for VCR if it has been imported somewhere. | |
| VCR.configure do |c| | |
| c.ignore_localhost = true | |
| end | |
| ENV['NO_PROXY'] = ENV['no_proxy'] = '127.0.0.1' |
| // ==UserScript== | |
| // @name Jira 5 - no stalker | |
| // @namespace http://djce.org.uk/greasemonkey | |
| // @include https://jira.dev.bbc.co.uk/browse/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| try { |
| java -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n ClassName |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # These two shortcuts allow your media keyboard or mouse's back/forward keys to change windows in screen. | |
| # This is designed to work with tmux or screen (using ctrl+a as the command shortcut) inside a Guake terminal | |
| # You'll also need xdotool installed (aptitude install xdotool) | |
| # Enter these as shortcuts in Ubuntu's "System Settings" > "Keyboard" > "Shortcuts" (tab) > "Custom Shortcuts" | |
| # Previous/Back Key | |
| xdotool search --onlyvisible --name Guake key ctrl+a p | |
| # Next/Forward Key | |
| xdotool search --onlyvisible --name Guake key ctrl+a n |
| # Title: Photos tag for Jekyll | |
| # Authors: Devin Weaver | |
| # Description: Allows photos tag to place photos as thumbnails and open in fancybox. Uses a CDN if needed. | |
| # | |
| # ** This only covers the markup. Not the integration of FancyBox ** | |
| # | |
| # To see an unabridged explination on integrating this with [FancyBox][1] | |
| # Please read my [blog post about it][2]. | |
| # | |
| # [1]: http://fancyapps.com/fancybox/ |