Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View glasnt's full-sized avatar
🦜

Katie McLaughlin glasnt

🦜
View GitHub Profile
@glasnt
glasnt / Makefile
Last active August 29, 2015 14:11 — forked from christian-marie/Makefile
Makefile for all the awesome "markdown -> pandoc -> pdf"-ness
MARKDOWNS=$(wildcard *.md)
PDFS=$(MARKDOWNS:md=pdf)
all: $(PDFS)
clean:
rm -f $(PDFS)
%.pdf: %.md
pandoc -V geometry:margin=1in -V papersize:"a4paper" --toc $< -o $@
@glasnt
glasnt / Dockerfile
Created February 3, 2015 04:48
wget output progress = STDERR
FROM debian:wheezy
RUN apt-get update && apt-get install -y wget
# Loud and noisy
RUN wget google.com
# Quiet
RUN wget google.com -q

Keybase proof

I hereby claim:

  • I am glasnt on github.
  • I am glasnt_ (https://keybase.io/glasnt_) on keybase.
  • I have a public key whose fingerprint is CF58 E858 6DC8 B4AD F1E9 322E 7149 57F8 48E5 B597

To claim this, I am signing this object:

@glasnt
glasnt / 00_readme.md
Last active August 29, 2015 14:21
Rubocop in SPAACCEE

Rubocop doesn't appear to be correcting spaces within braces denoting variables within strings.

Attempting an automatic correction does not fix this.

Running the auto-gen-correct command does not suggest any configurations to correct this.

# Super basic implementation of the octohat concept, but in ruby.
# It most probably is missing some elements.
require 'octokit'
access_token = ENV["GITHUB_TOKEN"]
repo = ARGV[0]
client = Octokit::Client.new(:access_token => access_token)
Octokit.auto_paginate = true
@glasnt
glasnt / test.md
Last active November 19, 2015 09:23
HI!
@glasnt
glasnt / pastie
Created September 10, 2013 04:43
Given sufficient s3cmd setup, this script can be used to paste stuff into your bucket.
#! /bin/bash -e
BUCKET="mabucket"
PASTE="paste"
if [ $# -eq 0 ]; then echo "Usage: $0 filename, or -l for list"; exit 1;fi
if [ $1 = "-l" ]; then s3cmd ls s3://$BUCKET/$PASTE/; exit 0; fi
FILENAME=`date +"%s"`
cp $1 /tmp/$FILENAME.txt
<div style="font-family: Monaco">
Monaco<br>
<table><tr><td>▁ ▂ ▃ ▅ ▆ ▇</td><td>▁▂▃▅▆▇</td></tr>
<tr><td>▁▂▃▄▅▆▇█</td><td>▁▂▃▄▅▆▇█</td></tr></table>
</div>
<div style="font-family: Menlo">
Menlo
<table><tr><td>▁ ▂ ▃ ▅ ▆ ▇</td><td>▁▂▃▅▆▇</td></tr>
<!doctype html>
<script src="https://code.shutterstock.com/rickshaw/vendor/d3.v2.js"></script>
<script src="https://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
<div id="chart"></div>
<script>
// Return an xinterp function for a given graph
function xinterp_on_graph(graph) {
@glasnt
glasnt / regional.py
Last active August 25, 2016 16:22
🇷​🇪​🇬​🇮​🇴​🇳​🇦​🇱​ ​🇮​🇳​🇩​🇮​🇨​🇦​🇹​🇴​🇷​ ​🇨​🇭​🇦​🇷​🇦​🇨​🇹​🇪​🇷​🇸​ ​🇦​🇸​ ​🇦​ ​🇸​🇪​🇷​🇻​🇮​🇨​🇪
"""
Usage: python3 regional.py list of words
Prints a representation of the words as Regional Identifiers, and copies the output directly to keyboard for you
This is because some terminals think that zero width spaces are silly.
Currently supports: A-Z
Requires: Python 3
Now less complex, thanks @bmispelon!
"""