Welcome To Snipplr


Everyone's Recent Snippets



1 ... 95 96 97 98 99 ... 553
How to make Global Variables (Singleton) in Objective-C
1 3148 posted 14 years ago by neoline
UPDATE: might be easier or faster to use this now (also courtesy Pippin): http://pippinsplugins.com/get-all-attached-media/ **courtesy Pippin Williamson (http://pippinsplugins.com/image-gallery-short-code-using-post-attachments/) use shortcode...
1 1674 posted 14 years ago by adambundy
It's very useful if you build a FLV player for example, and want to convert the time into minutes:seconds (example: 6:13) //apply it to your project like this (and don't forget to import the class): time.text = TimeUtil.getTimecode(timeValue);
0 3636 posted 14 years ago by vamapaull
An example showing how to solve the memory leak problem in constructor
0 1319 posted 14 years ago by huanglx
Removes WWW from the current URL, if exists.
1 1564 posted 14 years ago by thewickedchemist
Issues a check to see if the "www" is included, if not, forces "www" to be appended to the URL in question.
1 1586 posted 14 years ago by thewickedchemist
This code demonstrates how to concatenate list of strings using lambda expression without need to use a loop.
1 1656 posted 14 years ago by Neven
Save this as plugin.nextlink.php to your ndxz-studio/site/plugin folder. Call the Plugin where you need it: <plug:nextlink /> Original by "gd" http://www.indexhibit.org/forum/thread/7879/
0 1369 posted 14 years ago by G470
Use CDN if online. Fallback to local version if offline.
0 1644 posted 14 years ago by caruso_g
A clean and simple jQuery function for creating a tabbed element. This one allows multiple tabbed elements on 1 page (which has been the downfall of so many others)
1 1502 posted 14 years ago by digitalclubb
This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS. If you require multiple classes on your bo...
3 2762 posted 14 years ago by iridium
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
0 1686 posted 14 years ago by luizlopes
jQuery for inputy attribute "placeholder".
1 1428 posted 14 years ago by mihael
simple as3 class that help you to avoid repeat add MouseEvent each time
0 3565 posted 14 years ago by mgraph
Converts black to alpha.
0 1389 posted 14 years ago by playfulsystems2
Simple mix of basic CSS, HTML, and jQuery to detect IE and display a message to the user encouraging them to update.
0 2606 posted 14 years ago by thewickedchemist
dynamically selects a value in a select according to what's already in the DB
0 1323 posted 14 years ago by dato
Replace the normal <image...> XML with the following code (be sure to adjust the width and height accordingly):
0 3054 posted 14 years ago by wnasich
Bring an application to front to gain focus.
1 2145 posted 14 years ago by mirage3d
Glavni program zadatka 3
0 1367 posted 14 years ago by boki567
Use PHP to get JSON 1) set the PHP to the URL of the JSON 2) echo a variable with the loaded data 3) use a request via jQuery to get the variable from PHP
0 1657 posted 14 years ago by inreflection7
Return string representing current date in ISO 8601 format, e.g. "2011-12-12T20:50:22+0100". java.util.Calendar and java.text.SimpleDateFormat have to be imported first. NOTICE: Use this instead: http://snipplr.com/view/62060/clojure-iso-8601-curre...
0 4493 posted 14 years ago by ef
This snippet describes how to fill select html element with Text, Value pairs where 'Text' is displayed to the user and 'Value' is actual value to be processed.
0 1488 posted 14 years ago by Neven
<p>Little snippet, which helps to use custom colored selections. All you need is to setup the right style and use this snippet!</p>
0 1278 posted 14 years ago by schmizpeter
A simple PHP function for fetching tweets. Just provide your Twitter screen name and how many tweets you want and that is it. The function returns a simplified result set because you rarely need all the stuff that the Twitter API throws your way. If...
1 1938 posted 14 years ago by Sverri
Generate random number between two integers
0 1500 posted 14 years ago by aperazzi
Class to list/remove recursively files into a directory
0 1606 posted 14 years ago by fgbreel
Adding custom fields to the quick edit panel in Wordpress is easy using built-in hooks. However, the hook to add fields seems to be called multiple times, adding duplicate fields to the quick edit panel. Adding this code to the top of the function be...
0 1515 posted 14 years ago by briteweb
This will let you execute certain scripts on the home page and other scripts on the other pages of the site.
0 1510 posted 14 years ago by dburgess
1 ... 95 96 97 98 99 ... 553