This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function(){ | |
$("#mybutton").click(); | |
}, 1000); | |
$("#mybutton").click(function(e){ | |
if(e.originalEvent === undefined) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello Gavin, the father. This is Past Gavin. I went ahead and renewed your licence sticker to 2013 since you probably have a lot on your mind already. Happy Birthday! | |
P.S. Next year you will have to renew the sticker AND your licence, so please pay it forward. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//copy and paste me | |
error_reporting(E_ALL); | |
ini_set('display_errors', TRUE); | |
ini_set('display_startup_errors', TRUE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class='highlighted'> | |
<span>This is a line</span> | |
<span>This is a line</span> | |
<span>This is a line</span> | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h3 { | |
display: table; | |
width: 100%; | |
} | |
h3:before, | |
h3:after { | |
content: '\00a0'; | |
width: 20%; | |
display: table-cell; | |
background: url(../img/320/bullet.gif) repeat-x 1px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT date_add('2012-01-23', INTERVAL 7 DAY) -- returns 2012-01-30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("<a href='http://www.google.com#hello'>gavin</a>")[0].hash //returns "#hello" | |
$("#mylink")[0].hash //jquery selector | |
document.getElementById("mylink").hash //no jquery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<div id="scrollme"> | |
lots of content here, but no child elements. Muffin caramels danish cotton candy carrot cake icing tiramisu ice cream candy canes. Jelly-o marshmallow toffee brownie halvah bear claw jelly-o bear claw. Dessert chupa chups ice cream sugar plum fruitcake marshmallow. Apple pie lemon drops biscuit sweet powder gingerbread. Wafer dragée tiramisu. Candy canes chocolate pudding cupcake chocolate cake biscuit jelly-o. Cookie muffin halvah jelly beans candy chupa chups. Topping danish tart. Donut oat cake toffee. Icing soufflé candy cotton candy jelly. Cake gingerbread powder. Danish applicake jelly cotton candy cheesecake. | |
Apple pie chocolate bar sugar plum gummies brownie wafer pastry gingerbread chocolate. Pudding liquorice toffee wafer apple pie jelly soufflé. Candy pastry bonbon marshmallow gingerbread candy canes cake sweet roll muffin. Bonbon icing faworki cotton candy dragée jelly. Chocolate jelly jujubes soufflé marshmallow bonbon tiramisu jelly beans. Jujubes macaroon jelly beans s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//from http://kamikazemusic.com/quick-tips/jquery-html5-placeholder-fix/#comment-938 | |
$(document).ready(function() { | |
if (Modernizr.input.placeholder) | |
return; | |
$('input[placeholder]').focus(function() { | |
if ($(this).hasClass('placeholder')) { | |
if ($(this).val() == $(this).attr('placeholder')) | |
$(this).val(''); | |
$(this).removeClass('placeholder'); |