Skip to content

Instantly share code, notes, and snippets.

🦜

Katie McLaughlin glasnt

🦜
Block or report user

Report or block glasnt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@glasnt
glasnt / Makefile
Last active Aug 29, 2015 — forked from christian-marie/Makefile
Makefile for all the awesome "markdown -> pandoc -> pdf"-ness
View Makefile
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 $@
View index.html
<!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 / glitchulate.py
Created Nov 15, 2016 — forked from hawkowl/glitchulate.py
Make your favourite images into glitched monstrosities! (Requires pillow from PyPI, Py2/3/pypy compatible)
View glitchulate.py
from __future__ import print_function
import sys
import random
from collections import deque
from PIL import Image
# THIS IS THE MAGIC VALUE THAT MAKES EVERYTHING GLITCHED
@glasnt
glasnt / Code.gs
Created Dec 10, 2018 — forked from rheajt/Code.gs
google apps script to open a new website in a new window
View Code.gs
function openTab() {
var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue();
var html = "<script>window.open('" + selection + "');google.script.host.close();</script>";
var userInterface = HtmlService.createHtmlOutput(html);
SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab');
}
You can’t perform that action at this time.