+------------+-------------------+--------+
| *M* or *m* | moveto | (x y)+ |
+------------+-------------------+--------+
| *Z* or *z* | close path | (none) |
+------------+-------------------+--------+
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
POINT(2.0 4.0) | |
010100000000000000000000400000000000001040 | |
LINESTRING(2.0 4.0, 1.0 2.0) | |
01020000000200000000000000000000400000000000001040000000000000f03f0000000000000040 | |
POLYGON ((30 10, 40 40, 20 40)) |
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
### Keybase proof | |
I hereby claim: | |
* I am spoike on github. | |
* I am spoike (https://keybase.io/spoike) on keybase. | |
* I have a public key ASBid-dWl9jmwlyW9ZQYKyIQxCk4s88XiEd4nsrqno_Gsgo | |
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
function gch() { | |
local currentBranch=$(git rev-parse --abbrev-ref HEAD) | |
local previousFile="$(git rev-parse --show-toplevel)/.git/PREVIOUS_HEAD" | |
if [ -n "$1" ]; then | |
echo "$currentBranch" >> $previousFile | |
git checkout "$@" | |
else | |
if [ ! -f "$previousFile" ]; then echo >&2 "ERROR: Missing PREVIOUS_HEAD. Please run gch with 1 argument first." | |
else | |
git checkout "$(cat $previousFile | tail --lines=1)" |
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
# | |
# A minimal emoji theme. | |
# | |
# Authors: | |
# Mikael Brassman | |
# | |
# Features: | |
# - Displays a random emoji as prompt | |
# | |
# Usage: |
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
/* | |
* curry(fn: Function) => Function | |
* Simple implementation of currying a function | |
* Drawbacks: | |
* - Cannot be reused as stored args is mutable | |
* - Cannot use placeholders | |
* - Will not check argument overflow | |
*/ | |
function curry(fn) { | |
var arity = fn.length; // check the arity of the given function |
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/sh | |
# Use socat to proxy git through an HTTP CONNECT firewall. | |
# Useful if you are trying to clone git:// from inside a company. | |
# Requires that the proxy allows CONNECT to port 9418. | |
# | |
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run | |
# chmod +x gitproxy | |
# git config --global core.gitproxy gitproxy | |
# | |
# More details at http://tinyurl.com/8xvpny |
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
#!/usr/bin/env bash | |
# | |
# Switches to node version with nvm to the one defined in package.json | |
# Dependencies: nvm, jq | |
# Usage: Alias this by sourcing with ".", e.g. alias nnn='~/bin/use-pkg-node-version.sh' | |
if [ ! -e package.json ]; then | |
echo "Missing package.json file" | |
return 1 | |
fi |
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
# Description: | |
# Benedict Cumberbatch Name Generator | |
# Names taken from http://benedictcumberbatchgenerator.tumblr.com/ | |
# | |
# Commands: | |
# hubot cumberbatch (me) - generates a fairly Cumberbatchy name | |
_ = require "lodash" | |
firstnames = ["Bumblebee", "Bandersnatch", "Broccoli", "Rinkydink", "Bombadil", "Boilerdang", "Bandicoot", "Fragglerock", "Muffintop", "Congleton", "Blubberdick", "Buffalo", "Benadryl", "Butterfree", "Burberry", "Whippersnatch", "Buttermilk", "Beezlebub", "Budapest", "Boilerdang", "Blubberwhale", "Bumberstump", "Bulbasaur", "Cogglesnatch", "Liverswort", "Bodybuild", "Johnnycash", "Bendydick", "Burgerking", "Bonaparte", "Bunsenburner", "Billiardball", "Bukkake", "Baseballmitt", "Blubberbutt", "Baseballbat", "Rumblesack", "Barister", "Danglerack", "Rinkydink", "Bombadil", "Honkytonk", "Billyray", "Bumbleshack", "Snorkeldink", "Anglerfish", "Beetlejuice", "Bedlington", "Bandicoot", "Boobytrap", "Blenderdick", "Bentobox", "Anallube", "Pallettown", "Wimbledon", "Buttercup", "Blasphemy", "Syp |
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
# Description: | |
# Hubot magic 8-ball | |
# | |
# Dependencies: | |
# magicball | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
NewerOlder