Skip to content

Instantly share code, notes, and snippets.

View sb8244's full-sized avatar

Stephen Bussey sb8244

View GitHub Profile
@andyrbell
andyrbell / scanner.sh
Last active November 3, 2024 13:42
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
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
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 February 15, 2015 04:05
webpack + font-awesome test
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';