Skip to content

Instantly share code, notes, and snippets.

Working from home

Drew McArthur DrewMcArthur

Working from home
View GitHub Profile
DrewMcArthur /
Created Mar 31, 2018
keybase proof of my identity

Keybase proof

I hereby claim:

  • I am drewmcarthur on github.
  • I am drewmcarthur ( on keybase.
  • I have a public key ASABgvOLoDg-u8V-lVjQ2KY6bhNwwwigK8JXCD0fZaH2CAo

To claim this, I am signing this object:

DrewMcArthur / website-icon.html
Last active Oct 19, 2017
A single file describing an html page that renders the icon used for my website.
View website-icon.html
<link href=",400,500" rel="stylesheet" type="text/css">
<style type="text/css">
span {
position: absolute;
top: 3.5px;
left: 7.5px;
DrewMcArthur / darkroomextras.js
Last active Sep 28, 2017
This code can be copied into your console when playing to add some aesthetic features
View darkroomextras.js
// determine colors to set things, depending on if the lights are on
var focused = 'black';
var faded = '#BBB';
// when the mouse hovers over an item in either the craft or build list
$('#craftBtns > div, #buyBtns > div').not('.disabled').on('mouseenter', function(event){
// TODO: this should change with the engine event
focused = 'white';
faded = '#444';
DrewMcArthur / gist:643bbd5e4f8acbc1056682c42e770ce5
Last active Sep 4, 2016 — forked from mbillard/gist:1647940
How to install GNU gettext on MAC OSX
View gist:643bbd5e4f8acbc1056682c42e770ce5
  1. Wget
  2. Untar file as tar -zxvf gettext-latest.tar.gz
  3. cd to the directory containing the package's source code and type ./configure to configure the package for your system. If you're using csh on an old version of System V, you might need to type sh ./configure instead to prevent csh from trying to execute configure itself.

Running configure takes awhile. While running, it prints some messages telling which features it is checking for.

  1. Type make to compile the package.
  2. Optionally, type make check to run any self-tests that come with the package.
  3. Type make install to install the programs and any data files and documentation.
DrewMcArthur /
Created Jul 1, 2015
This script allows a simulation of a 2D grid of workspaces for i3wm
#This script simulates a 2D grid of workspaces with i3.
#all you have to do is add the next line to your i3/config
#bindsym <keys> exec <path>/i3/ <direction> [move win]
#for example,
#bindsym Control+Mod1+Right exec ~/.config/i3/ right