Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
echo "Enter your AWS Access Key: "
read access_key
echo "Enter your AWS Secret Key: "
read secret_key
encrypted=$(echo $secret_key | openssl aes-256-cbc -a -salt)
@heath
heath / LICENSE.txt
Created September 26, 2013 21:55 — forked from plugnburn/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2013 plugnburn
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@heath
heath / gol-ls.ls
Created August 20, 2013 02:32 — forked from sevvie/gol-ls.ls
# Conway's Game of Life, in LiveScript
# ====================================
#
# Conway's Game of Life is a cellular automaton, published by John H Conway
# in 1970, fulfilling the design principles but greatly simplifying the
# research of von Neumann, into a hypothetical machine that could build
# copies of itself. It is a zero-player game, meaning there is no input, and
# the game will progress on its own with a 'seed', or configuration, to
# begin with.
#

Readline example

readline = require "readline"
rl = readline.createInterface
  input:  process.stdin
  output: process.stdout

Example of named functions

You could use named functions to better read callbacks instead of deeply nested

#crawler-js-container
#crawler-js
:coffeescript
window.joystick = {};
($ document).ready ->
MicroEvent.mixin VirtualJoystick
window.joystick = new VirtualJoystick({
container : document.getElementById('crawler-js-container'),
mouseSupport : true
})