Welcome To Snipplr


Everyone's Recent Snippets



1 ... 95 96 97 98 99 ... 552
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 4226 posted 14 years ago by vamapaull
An example showing how to solve the memory leak problem in constructor
0 1811 posted 14 years ago by huanglx
Removes WWW from the current URL, if exists.
1 2011 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 2010 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 2206 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 1789 posted 14 years ago by G470
Use CDN if online. Fallback to local version if offline.
0 2153 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 1996 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 3390 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 2217 posted 14 years ago by luizlopes
jQuery for inputy attribute "placeholder".
1 1912 posted 14 years ago by mihael
simple as3 class that help you to avoid repeat add MouseEvent each time
0 4130 posted 14 years ago by mgraph
Converts black to alpha.
0 1845 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 3103 posted 14 years ago by thewickedchemist
dynamically selects a value in a select according to what's already in the DB
0 1827 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 3767 posted 14 years ago by wnasich
Bring an application to front to gain focus.
1 2721 posted 14 years ago by mirage3d
Glavni program zadatka 3
0 1822 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 2138 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 5149 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 2006 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 1741 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 2516 posted 14 years ago by Sverri
Generate random number between two integers
0 1995 posted 14 years ago by aperazzi
Class to list/remove recursively files into a directory
0 2131 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 2004 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 1965 posted 14 years ago by dburgess
This will detect the Home Page of Joomla and perfom whatever code you tell it to
0 1874 posted 14 years ago by dburgess
Creating sprite buttons often had problems with different browsers. This is a solution to get background positions in each browser for further manipulation.
1 2541 posted 14 years ago by bernhardb
1 ... 95 96 97 98 99 ... 552