Skip to content

Instantly share code, notes, and snippets.

* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <>
* MIT license
* Includes enhancements by Scott Trenda <>
* and Kris Kowal <>
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
<html ng-app='order'>
<script src='http://localhost:3000/assets/angular.js'></script>
<script src='http://localhost:3000/assets/angular-route.js'></script>
<script src='order_app.js'></script>
<div ng-view>
stuff goes here
- name: Install ruby and rails dependencies
user: root_allowed_user
hosts: host
sudo: true
ruby_version: '1.9.3-p286'
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="random_aww" data-view="RandomAww"></div>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="animalsbeingjerks" data-view="RandomAww"></div>
chelsea /
Last active April 26, 2022 18:26
Random Aww


Dashing widget to display a random cute picture from

The display of the widget is heavily based on the Image widget, however it does not prepend the src with 'assets' which allows for external images.


You can set a placeholder image in the event that reddit is down, or otherwise unresponse. This is set at the top of random_aww.rb as follows:

chelsea / gist:2658248
Created May 11, 2012 07:59 — forked from gabehollombe/gist:2468822
SSH tunnel between two NATed machines via a third SSH host
Useful for when you need to have two hosts talk to each other on a specific port but they're both NATed (behind routers).
For example, you want to be able to SSH into your friend's machine to pair program with them.
remote$ ssh -R 55555:localhost:22
local$ ssh -L 55555:localhost:55555
local$ ssh -p 55555 localhost -l remote_user
<script type='text/javascript' src=''></script>
<script type='text/javascript' src='jquery.custom_radio_checkbox.js'></script>
<script type='text/javascript'>
if (typeof(loadFirebugConsole) != 'undefined') { loadFirebugConsole(); }
if (typeof(console) == 'undefined') { console = {debug: function(msg) { alert(msg); }}; }
scopes[name] = danny do |parent_scope, *args|, case options
when Hash
when Proc*args)
end, &block)
jQuery(function ($) {
var csrf_token = $('meta[name=csrf-token]').attr('content'),
csrf_param = $('meta[name=csrf-param]').attr('content');
* Triggers a custom event on an element and returns the event result
* this is used to get around not being able to ensure callbacks are placed
* at the end of the chain.
$(task_parent).find(".user_select option").each( function() { $(this).attr("selected", false); });