Skip to content

Instantly share code, notes, and snippets.

@adrianrodriguez
Created March 24, 2011 21:07
Show Gist options
  • Save adrianrodriguez/885891 to your computer and use it in GitHub Desktop.
Save adrianrodriguez/885891 to your computer and use it in GitHub Desktop.
//Yannick's lack of interest in the Captain America movie just got him slapped, epic style:
$(function(){
$('#adrian').slap(function(){ // initiate slap
$("#yannick").face(10000); // slow motion slap
return true; // loop that sucka << this may be wrong, but the animation don't gotta stop....
});
});
@ChrisMBarr
Copy link

Whatever, I can do this with CSS

adrian{

slap: yannick always;

/* Shorthand for:
slap-target: yannick;
slapping-mode: always;
*/

}

(hmmm... git doesn't seem to know the syntax of my made up properties)

@JoshChris
Copy link

or there's always good ole' php:
slap("Yannick"); ?>

@ylynfatt
Copy link

@ChrisMBarr haha good one. Perhaps you should have made adrian into #adrian.

@JoshChris shouldn't you have created a PHP class called Person and then define a 'slap' method/function for that class? Then create an instance of the Person class and assign it to $adrian and call the slap method on that object? :P

@pnomolos
Copy link

Or a little python
while (True):
adrian.slap(yannick)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment