Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Bussey sb8244

View GitHub Profile
@andyrbell
andyrbell / scanner.sh
Last active Dec 6, 2022
Make a pdf look scanned using ImageMagick
View scanner.sh
# 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
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
[:gen_stage]
end
defp deps(_) do
[{:gen_stage, "~> 0.10.0"}]
end
@Turbo87
Turbo87 / app.js
Created Feb 15, 2015
webpack + font-awesome test
View app.js
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';