Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
| @Target(ElementType.METHOD) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| public @interface Audited { | |
| } |
| require 'json' | |
| require 'date' | |
| # Embedders | |
| def scalar | |
| lambda { |x| x } | |
| end | |
| def date |
| users = require './../data/users' | |
| data = users: [] | |
| data.users.anon = authenticated: false | |
| data.users.admin = users[0] | |
| data.users.jk = users[1] | |
| data.users.artle = users[5] | |
| data.users.beountain = users[4] | |
| setSession = (userKey) -> |
| A bunch of stenciles for wireframing, data & user flow diagrams and more: | |
| Empty Chrome Browser Window: | |
| https://www.graffletopia.com/stencils/938 | |
| Twitter Bootstrap UI: | |
| https://www.graffletopia.com/stencils/934 | |
| Google Web GUI: | |
| https://www.graffletopia.com/stencils/10431 |
Generated with workflows2md.
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
Update 8/16/2015: I updated this guide a bit and posted it to Medium
A few notes about things I do when I travel to Japan.
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| system ~/projects/jruby $ time java HelloWorld | |
| Hello, world! | |
| real 0m0.098s | |
| user 0m0.087s | |
| sys 0m0.022s | |
| system ~/projects/jruby $ time java HelloWorld | |
| Hello, world! |