Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Drew McArthur DrewMcArthur

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

Keybase proof

I hereby claim:

  • I am drewmcarthur on github.
  • I am drewmcarthur (https://keybase.io/drewmcarthur) on keybase.
  • I have a public key ASABgvOLoDg-u8V-lVjQ2KY6bhNwwwigK8JXCD0fZaH2CAo

To claim this, I am signing this object:

@DrewMcArthur
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
<html><head>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,500" rel="stylesheet" type="text/css">
<style type="text/css">
span {
position: absolute;
top: 3.5px;
}
span.D{
left: 7.5px;
}
@DrewMcArthur
DrewMcArthur / darkroomextras.js
Last active Sep 28, 2017
This code can be copied into your console when playing adarkroom.doublespeakgames.com 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
if(Engine.isLightsOff()){
focused = 'white';
faded = '#444';
@DrewMcArthur
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 ftp://ftp.gnu.org/pub/gnu/gettext/gettext-latest.tar.gz
  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
DrewMcArthur / 2d-workspaces.sh
Created Jul 1, 2015
This script allows a simulation of a 2D grid of workspaces for i3wm
View 2d-workspaces.sh
#!/bin/bash
#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/workspaces.sh <direction> [move win]
#for example,
#bindsym Control+Mod1+Right exec ~/.config/i3/workspaces.sh right