brew install gource
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
const localStorageMock = (() => { | |
let store: IDict = {}; | |
return { | |
getItem(key: any) { | |
return store[key] || null; | |
}, | |
setItem(key: any, value: any) { | |
store[key] = value.toString(); | |
}, |
### Keybase proof | |
I hereby claim: | |
* I am chuckjhardy on github. | |
* I am chuckjhardy (https://keybase.io/chuckjhardy) on keybase. | |
* I have a public key ASDN6G-JWLU8Pn-F7HdCOeMj2z0URHrG3PbkQYifsUV5wAo | |
To claim this, I am signing this object: |
Verifying my Blockstack ID is secured with the address 1L2WKTJbQV4da4RwRmaSRAx114K8M6Uzg5 https://explorer.blockstack.org/address/1L2WKTJbQV4da4RwRmaSRAx114K8M6Uzg5 |
# Queue / Workers | |
gem "sidekiq" | |
gem "sidekiq-statistic" | |
gem "sidekiq-failures" | |
gem "clockwork", git: "https://github.com/Rykian/clockwork.git" |
require 'command' | |
describe Command do | |
let(:instance) { described_class.new(input, robotic_rover) } | |
let(:robotic_rover) do | |
instance_double( | |
"RoboticRover", | |
position: '0 0 N', | |
move: '0 1 N', |
module StaticMapHelper | |
def static_map_for(location, options = {}) | |
params = { | |
:center => [location.lat, location.lng].join(","), | |
:zoom => 15, | |
:size => "300x300", | |
:markers => [location.lat, location.lng].join(","), | |
:sensor => true | |
}.merge(options) |
#!/usr/bin/env sh | |
set -e | |
blue="\033[34m" | |
reset="\033[0m" | |
red="\033[31m" | |
function warn { | |
echo "$1" > /dev/stderr |
#!/usr/bin/env sh | |
blue="\033[34m" | |
reset="\033[0m" | |
red="\033[31m" | |
green="\033[32m" | |
function warn { | |
echo "$1" > /dev/stderr | |
} |
class MyJob < ActiveJob::Base | |
queue_as :urgent | |
rescue_from(NoResultsError) do | |
retry_job wait: 5.minutes, queue: :default | |
end | |
def perform(*args) | |
MyService.call(*args) | |
end |