Welcome To Snipplr


Everyone's Recent Snippets



1 ... 62 63 64 65 66 ... 559
You could start a transaction before running your queries and then rollback after running them. Note that to do this you'll require InnoDB or XtraDb tables (won't work on MyISAM).
0 562 posted 10 years ago by satie83
Code from https://snipt.net/geekyjohn/get-url-param/ updated so that most jslint issues are resolved, and updated the return to use a guard condition instead of a separate if statement.
1 753 posted 10 years ago by pmw57
This method utilizes tasksel
0 421 posted 10 years ago by bitfed
This is a route that ables the website to show the user's profile to the world.
0 325 posted 10 years ago by rafaelfragosom
table with image on one side, products info on the other. includes some CSS from Tablizer that has been modified.
0 457 posted 10 years ago by dcoxdesigns
0 302 posted 10 years ago by kayasax
Used to invoke a GetSaveAsFileName dialogue box
0 346 posted 10 years ago by sjmoorecouk
0 359 posted 10 years ago by openone
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0 467 posted 10 years ago by symsec
Standard hasClass, addClass, and removeClass functions. - reworked so that jsLint is happy about them - removeClass function trims things after removing a class name - tests help to ensure that all common use-cases are covered
2 734 posted 10 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 724 posted 10 years ago by rumremix
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0 919 posted 10 years ago by i-am-andy
Get current url. Include domiain. For example :http:// localhost/root_folder.
0 746 posted 10 years ago by tucq88
This code allows quick access to the dnn state/region listings..
0 483 posted 10 years ago by box86rowh
Just an example showing how to minimise the mixture of HTML and PHP in a view.
0 422 posted 10 years ago by JonnySnip3r
simple snippet to open url with an ibaction in safari
0 539 posted 10 years ago by code4mac
Just a quick down and dirty login function I use.
0 552 posted 10 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 673 posted 10 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 565 posted 10 years ago by mrjohnmain
IE8 and below have no CSS support
0 430 posted 10 years ago by tucq88
Lambda expression to convert an array.
0 705 posted 10 years ago by rengber
Simple touch detection in unity for mob devices
0 479 posted 10 years ago by jquery404
Implementation of CSS3 Media Query
0 594 posted 10 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 326 posted 10 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 416 posted 10 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 485 posted 10 years ago by VisionHive
0 416 posted 10 years ago by scrapy
1 ... 62 63 64 65 66 ... 559