Joined October 2013

Justin Workman

Oregon, USA

Posted to Remove all exited docker containers over 1 year ago

I needed this. Thanks :)

@archonic The issue is that 'page:change' might be fired before the transition out animation has a chance to finish. I'm sure there's a way to get it right, but I'm not quite sure how.

Also try Alt+. to cycle through previous arguments.

@serknight, when you solve it, be sure to make your own pro-tip :)

Posted to How to name your servers over 1 year ago

And don't forget this gem:

@serknight, it would be trivial to change the JavaScript code to animate elements based on a data-transition-in and data-transition-out attribute set on the element(s) you wish to transition. This would solve the problem of wanting to animate more than one element, and animating different elements different ways on different pages.

However, it sounds like what you actually want is to set the transitions based on the context of your navigation. That's a bit more tricky. You can transition out based on which link you've clicked, by tagging certain a elements with a data-attribute to describe which transition you want for that link. But how would the next page know which transition in to use? You could use a cookie, a GET param, or pass the Referrrer header. It sounds possible, but I don't think it would be very clean.

Another idea is to use meta link elements as context when applying the transitions. For example, an article might have multiple pages. You might want <link rel="next"> to animate one way and <link rel="prev"> to animate another way. Still, you would need a way to know which transition in to use on the next page when it loads.

Posted to A quicker Mkdir over 1 year ago

@wimnorder, my version of mkgit calls my mkcd function, so it will create the folder for you as well as cding and initializing git :)

Posted to A quicker Mkdir over 1 year ago

Great tip. Here's what I've always used:

function mkcd { mkdir -pv "$1" && cd "$1"; }
function mkgit { mkcd "$1" && git init; }

I knew about to_proc, but I did not realize you could pass it a Method like that. Nice tips!

Posted to Two-Factor Authentication FTW over 1 year ago

Authy is so cool. There are a few services I wish used it. I'd rather open the Authy app and instantly see the auth code than to sit and wait for an SMS.

Posted to Linux - return to the last folder over 1 year ago

Yep. I use them so often I alias them:

alias pu='pushd'
alias up='popd'

You can also use the dirs command to see the stack.

Posted to Linux - return to the last folder over 1 year ago

See also pushd and popd.

Thanks! You've got some pretty sweet sounds yourself.

Alternative method: Use a website status monitor, such as BinaryCanary. That way you're keeping your app awake and monitoring it's uptime.

Posted to Spaces or Tabs based on your git repo over 1 year ago

I've had good luck with DetectIndent:

214 Karma
14,497 Total ProTip Views