Skip to content

Instantly share code, notes, and snippets.

View stefgosselin's full-sized avatar

Stephane Gosselin stefgosselin

  • Saint-Eugène-De-Guiges
View GitHub Profile
@marcelklehr
marcelklehr / gist:1293564
Created October 17, 2011 19:42
CheatAss! A cheat for playing 'KickAss - Destroy the Web'. Simply make a bookmark out of it!
javascript:ASTEROIDS.watch('enemiesKilled', function(prop, old, newval) {return newval+4;});void(0);
/**
Code copyright Dustin Diaz and Ross Harmes, Pro JavaScript Design Patterns.
**/
// Constructor.
var Interface = function (name, methods) {
if (arguments.length != 2) {
throw new Error("Interface constructor called with " + arguments.length + "arguments, but expected exactly 2.");
}
this.name = name;
(function ($) {
Drupal.behaviors.myModule = {
attach: function (context) {
// Code ...
}
}
})(jQuery);