Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 349 350 351 352 353 ... 553
3 1714 posted 16 years ago by arpit
OOP style getters and setters in PHP.
1 1030 posted 16 years ago by Alexw
I’ve made a ruler to measure distances on a Google Map V3. The file Ruler.js contains a two function: one to calculate the distance between two points on the map with their position expressed in decimal degrees, and one function that add the ruler....
1 2075 posted 16 years ago by ginoplusio
For use in conjunction with the get_work function in the theme functions template, functions.php. Requires
0 1383 posted 16 years ago by tylersticka
Reads the EXIF Data to find the actual original taken date. This is available on most camera's.
1 3124 posted 16 years ago by derekholmes
Redirect to a subfolder (blog) in a search engine friendly way using .htaccess. Change “YourDomain.com” to your domain name.
1 1678 posted 16 years ago by math89
Is also generates the .wp-post-image class for us to style
0 1396 posted 16 years ago by crs
2 3469 posted 16 years ago by yazu
0 1468 posted 16 years ago by yazu
0 1260 posted 16 years ago by AzizLight
Strips out every character except 0-9
0 1291 posted 16 years ago by jmiller
demo: http://www.adamcoulombe.info/lab/as3/360-spin-hover.html FLA: http://www.adamcoulombe.info/lab/as3/360-spin-hover.fla requires tweenlite
1 2221 posted 16 years ago by adamcoulombe
Spotlight Navigation effect using AS3 and Tweenlite Demo: http://www.adamcoulombe.info/lab/as3/spots_test.html FLA: http://www.adamcoulombe.info/lab/as3/spots_test.fla
2 2184 posted 16 years ago by adamcoulombe
Regular menu item adding current class if current url equal menu item destination.
1 1596 posted 16 years ago by smoothdzion
I needed to make menu items that kept the current class based on the controller being accessed.
1 1344 posted 16 years ago by smoothdzion
I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out. Using jQuery and added it to a helper because I was using in multiple places. Created variables to make it more readable.
1 1395 posted 16 years ago by smoothdzion
This sinpet is extracted from a post of "Undefined Value", Kris Johnson's Blog.
2 3708 posted 16 years ago by funkypanda
1 1569 posted 16 years ago by blackf0rk
An important thing to keep in mind about adding groups is that you add groups to site collections and not webs. To do this, we access the SiteGroups collection rather than the Groups collection. In order to assign permissions, each group you add n...
0 1664 posted 16 years ago by blackf0rk
This is the standard template to use in your header.php (WordPress).
2 3422 posted 16 years ago by SilverFirefly
1 1496 posted 16 years ago by AzizLight
Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.
1 2323 posted 16 years ago by AzizLight
1 ... 349 350 351 352 353 ... 553