Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 154 155 156 157 158 ... 553
A simple C# function to take a standard DateTime and convert it to a pretty string saying how many seconds/minutes/days/weeks/months ago the date was, it doesn't return an actual date, but that wouldn't be hard to change the month/week/day section to...
2 1678 posted 14 years ago by Maelstrom
this creates a function inside a widget object to create a dropdown menu with all the custom post types created in wordpress functions.
0 1536 posted 14 years ago by hugosolar
0 1079 posted 14 years ago by ziuek
0 2203 posted 14 years ago by a1ias
As simple as it can be. An PHP minifier. All the credits go to his author, Kit MacAllister
0 1264 posted 14 years ago by thefricky
Calculating Compound Interest. Real time [Compound Interest Calculator](http://ncalculators.com/interest/compound-interest-calculator.htm "Real time result")
0 853 posted 14 years ago by vinotht
A simple way to style a link using a CSS sprite. On hover, the image is moved upwards by the image height to reveal the rollover image.
0 1215 posted 14 years ago by studioevoque
0 1189 posted 14 years ago by psteinweber
In die functions.php des Themes einfügen.
0 1268 posted 14 years ago by gabbo
1 1353 posted 14 years ago by odenijs
Basic Google Maps initialize code
0 1383 posted 14 years ago by marzsman
Center the map on an array of latlng values
0 1650 posted 14 years ago by marzsman
0 1185 posted 14 years ago by ericmuyser
When creating a WordPress based website for a client, you may need to make sure that he can’t switch themes. This is what I’m going to show you in today’s recipe.
0 1354 posted 14 years ago by jamiebrwr
Start / Stop Crontab as a service
0 1217 posted 14 years ago by greeneggs614
This snippet will help you to use the mother category, the ones with parent => 0, as your classes ready to be stylezed in your CSS!
0 1638 posted 14 years ago by Pr0v4
0 2342 posted 14 years ago by zayyarphone
0 3417 posted 14 years ago by track02
This is the new way of creating rounded corners. No images, just 2 lines of code [includes mozilla fix] The two integers are used to set the radius. If they are equal, you can just put it down once.
0 1392 posted 14 years ago by StefanHagen
0 1361 posted 14 years ago by track02
1) name the file something like "template-pods-export.php" 2) create a new Pods Page & choose the newly created template 3) goto your worpress URL/export 4) enter filename.csv & pod name you want to export. 5) Submit. 6) Away Laughing
0 2292 posted 14 years ago by stewartduffy
0 1163 posted 14 years ago by burnleywallet
Note that this approach DOESN'T maintain the image's aspect ratio. For a pure CSS technique that does that you need a CSS3 approach.
0 1439 posted 14 years ago by f6design
1 ... 154 155 156 157 158 ... 553