Skip to content

Instantly share code, notes, and snippets.

@DouglasMeyer
DouglasMeyer / Contemporary_playing_cards.svg
Last active January 13, 2019 20:55
TableGames Solitare
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DouglasMeyer
DouglasMeyer / test.rb
Last active August 29, 2015 14:23
DATA and __END__ in ruby
puts DATA.read # will print out what is below the __END__ line
__END__
Hello
let me try some things
@DouglasMeyer
DouglasMeyer / dialog.js
Created January 15, 2013 15:58
Some dialog behavior. Would it be better for the dialog to be an iframe? Depends...
var dialog = $('<div />').appendTo(document.body);
// Close the dialog when the user clickes out of it.
$('body').on('mousedown', function(){ dialog.remove(); });
dialog.on('mousedown', function(e){
// Don't let clicks bouble-up to the body and remove the dialog.
e.stopPropagation();
});
// Open links in the dialog
SETUP
riot sanity test generic context
SETUP
- should get_mocked_once: get_mocked_once() Called 0 times. Expected 1 times.