Skip to content

Instantly share code, notes, and snippets.


Stephen Bussey sb8244

View GitHub Profile
andyrbell /
Last active Dec 6, 2022
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
jclosure / demand_driven_message_pump.ex
Created Jan 12, 2017
Using GenStage to create a demand-driven Message Pump with back-pressure control
View demand_driven_message_pump.ex
defmodule QueueMessagePump do
@moduledoc """
# Add to mix.exs
defp applications(_) do
defp deps(_) do
[{:gen_stage, "~> 0.10.0"}]
Turbo87 / app.js
Created Feb 15, 2015
webpack + font-awesome test
View app.js
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';