Skip to content

Instantly share code, notes, and snippets.

Legend

This is a command in the Docker Quickstart Terminal

$ This is a command run inside the docker host or inside a container (linux etc, eg after docker-machine ssh default or docker run -it ubuntu bash)

Install Docker Toolbox

  1. start docker quick-start terminal
@cristhoz
cristhoz / rc4.js
Last active August 29, 2015 14:07 — forked from farhadi/rc4.js
/*
* RC4 symmetric cipher encryption/decryption
*
* @license Public Domain
* @param string key - secret key for encryption/decryption
* @param string str - string to be encrypted/decrypted
* @return string
*/
function rc4(key, str) {
var s = [], j = 0, x, res = '';
@cristhoz
cristhoz / rAF.js
Last active August 29, 2015 14:07 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@cristhoz
cristhoz / dabblet.css
Created January 21, 2012 01:42
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
/* Ref. gradient http://css-tricks.com/css3-gradients/ */
input {
border: 0 none;
padding: 5px 15px 6px;
font: bold 12px verdana, arial;
border-radius: 5px;
color: #fff;
text-shadow: 1px 1px 2px rgba(0,0,0,.5);
cursor: pointer; }
@cristhoz
cristhoz / dabblet.css
Created January 2, 2012 14:13
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#nav {
}
#nav a {
display: block;
width: 125px;