Welcome To Snipplr


Everyone's Recent Snippets



1 ... 63 64 65 66 67 ... 567
Scales a number from a given range into a specific range, as explained [in this Stack Overflow](http://stackoverflow.com/questions/5294955/how-to-scale-down-a-range-of-numbers-with-a-known-min-and-max-value) post. Just call it, for example like:...
0 621 posted 9 years ago by slhck
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0 354 posted 9 years ago by symsec
Standard hasClass, addClass, and removeClass functions, reworked so that jsLint is happier about them, and fixed the removeClass function so that things are trimmed after removing a class name.
2 532 posted 9 years ago by pmw57
In the examples, below, Step1 is the id given to the element. If the element is set to runat="server", when it is rendered on the page, the id will change dynamically to something like ctl00$PlaceHolderMain$Step1. But the actual value may change. To...
0 537 posted 9 years ago by rumremix
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0 668 posted 9 years ago by i-am-andy
Get current url. Include domiain. For example :http:// localhost/root_folder.
0 552 posted 9 years ago by tucq88
This code allows quick access to the dnn state/region listings..
0 365 posted 9 years ago by box86rowh
Just an example showing how to minimise the mixture of HTML and PHP in a view.
0 323 posted 9 years ago by JonnySnip3r
simple snippet to open url with an ibaction in safari
0 407 posted 9 years ago by code4mac
Just a quick down and dirty login function I use.
0 392 posted 9 years ago by box86rowh
Simulate the $_GET array from php in javascript to get url parameters this way: url= http://localhost/?var1=example $_GET['var1'] will return "example" Just copy and paste the code.
2 494 posted 9 years ago by sergiazow
I've updated Mad Current Event to work with Joomla vs 2.5.6. Just replace the contents of mod_madcurrentevent.xml with the following code.
0 426 posted 9 years ago by mrjohnmain
IE8 and below have no CSS support
0 331 posted 9 years ago by tucq88
Lambda expression to convert an array.
0 531 posted 9 years ago by rengber
Simple touch detection in unity for mob devices
0 345 posted 9 years ago by jquery404
Implementation of CSS3 Media Query
0 444 posted 9 years ago by ecksteing
Quite useful snippet to log all events triggering occuring in your app. Because it uses event.global array, it logs custom events as well as native ones For developpement use only, disable it before migrating to production environement.
1 228 posted 9 years ago by mandawan
Place the function in your functions.php file of your theme... Then, simply call like this: wp_paginate('', 3); The first param is optional, the second dictates how many pages before and after the current page link will show...
0 309 posted 9 years ago by thewickedchemist
This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
0 369 posted 9 years ago by VisionHive
0 302 posted 9 years ago by scrapy
1 ... 63 64 65 66 67 ... 567