LuckyShot


Member since 10/11/2009

36 snippets

862 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

LuckyShot's Recent Snippets



« Prev 1 2
Gets seconds and returns it like Facebook/Twitter style: "2 minutes ago", "9 hours ago", etc... The script actually returns "1 minute", "17 days"... so that you can customize it: "3 seconds ago", "in 1 minute", "will take 4 days", etc.
0 226 posted 10 years ago by LuckyShot
0 99 posted 10 years ago by LuckyShot
iPhone code snippets for websites
1 116 posted 10 years ago by LuckyShot
3 140 posted 10 years ago by LuckyShot
A member of Wordpress community says: I placed this code on my site and it instantly cut my page load times from 4-8 seconds per page (and typically on the high end of that) down to 1-3 seconds per page and EVERYTHING on my site works as it did befor...
1 113 posted 10 years ago by LuckyShot
Disable Firebug and plugins, close other tabs and close other programs for more accurate results!
1 99 posted 10 years ago by LuckyShot
Extracts the most recent tweet from the users RSS feed and auto-detects links.
1 176 posted 10 years ago by LuckyShot
Variables not dependant on the loop, can be used as GET params
0 150 posted 10 years ago by LuckyShot
Bayesian Rating is using the Bayesian Average. This is a mathematical term that calculates a rating of an item based on the “believability” of the votes. The greater the certainty based on the number of votes, the more the Bayesian rating approxi...
1 133 posted 10 years ago by LuckyShot
12 columns, 60 pixels each, with 20 pixel gutter
2 132 posted 10 years ago by LuckyShot
Where 123 is the post/page ID.
0 134 posted 10 years ago by LuckyShot
0 120 posted 10 years ago by LuckyShot
2 132 posted 10 years ago by LuckyShot
Detects all anchor links in a page and makes them go to the place smoothly.
0 106 posted 10 years ago by LuckyShot
0 104 posted 10 years ago by LuckyShot
To call it just put <?php> in your template file within the loop.
2 173 posted 10 years ago by LuckyShot
Add to your functions.php in the active template. Remove commented text. Fat/Thin char detection still not implemented. I'll update it as soon as I get some time. If you come with it please let me know :)
0 104 posted 10 years ago by LuckyShot
TimThumb should be in the template folder named as "thumb.php". Change H (height in px), W (width in px), Q (quality 0-100), ZC (zoom cropping 0-1) values. You can provide only one of the dimensions of the picture to get a proportional scale.
1 104 posted 10 years ago by LuckyShot
<div> <div></div> <div></div> <div></div> </div>
1 126 posted 10 years ago by LuckyShot
Creates custom loop to avoid interfeering with the loop of the page
1 83 posted 10 years ago by LuckyShot
« Prev 1 2