Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jonyardley on github.
  • I am jonyardley (https://keybase.io/jonyardley) on keybase.
  • I have a public key ASCB9HLy0Iconf7_ZUjhKUTa-zyPGH4hthXdZ1_nutWSHwo

To claim this, I am signing this object:

@jonyardley
jonyardley / Dockerfile
Last active March 3, 2023 21:12
Precompile Ruby on Rails assets with Docker
ARG ASSET_HOST
RUN bundle exec rake ASSET_HOST=${ASSET_HOST} RAILS_ENV=production assets:precompile
@jonyardley
jonyardley / docker-cheat.sh
Created August 3, 2015 11:39
Docker Cheatsheet
###
# Docker CheatSheet
###
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@jonyardley
jonyardley / queue.js
Created March 6, 2014 10:13
JS Non-bocking Loop / Queue
define(['app'], function(App){
//script inspired by: http://debuggable.com/posts/run-intense-js-without-freezing-the-browser:480f4dd6-f864-4f72-ae16-41cccbdd56cb
App.queue = function(){
var queue = {
_timer: null,
_queue: [],
add: function(queueName, fn, context, time) {