Skip to content

Instantly share code, notes, and snippets.


Stephen Bussey sb8244

View GitHub Profile
andyrbell /
Last active March 27, 2023 20:03
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 January 12, 2017 17:25
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 February 15, 2015 04:05
webpack + font-awesome test
View app.js
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';