Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 53 54 55 56 57 ... 552
Snippet to show how works optparse module to add optoins when it is called by command line
0 2238 posted 13 years ago by ssoton
Clear text input when the user selects it (on focus)
0 2141 posted 13 years ago by rickygri
This is a method that can be used to take a connection string and a valid oledb command and perform a scalar. This returns an Integer/Int32 value.
0 4121 posted 13 years ago by nimblebits
JavaScript is the only option, if you want to have the ability to clear all form fields. Yes, HTML form has Reset method, but if the form has initial values, then Reset will return the form to the initial state instead of clear input fields. This exa...
1 3051 posted 13 years ago by laxman2021
CSS3 Ajax Loading Animation ======== This is a simulation for the popular gif animated images. The reason why i choose to do it in css3 is the flexibility of re-using it in different sizes, different colors and the transparency issues in gif anim...
1 3195 posted 13 years ago by MohamedAlaa
This is a Class that allows you create a letter with correct headers and send it to multi-emails.
0 3083 posted 13 years ago by Zayac
out put a field with multiple values as a list fro styling purposes useing child selectors
0 2126 posted 13 years ago by mktimes5
This portion of code allows to do bandpass filtering over time series
0 1633 posted 13 years ago by leonpalafox
Snippet showing a simple Flask application to illustrate the topics covered in the "Quickstart".
0 2055 posted 13 years ago by denakitan
This is a script for a validating Email.
0 2983 posted 13 years ago by laxman2021
From css-tricks.com
1 2401 posted 13 years ago by Gianino
iOS Meta-Tag um das skalieren des Contents zu sperren!
0 1956 posted 13 years ago by dejot
pass variables from iOS app to web site (synchrone version)
0 4597 posted 13 years ago by code4mac
snippet to show appindicator problem
0 1967 posted 13 years ago by ssoton
For those moments of weakness when .replace() looks like a good idea...
0 3316 posted 13 years ago by inreflection7
This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent sessi...
0 2120 posted 13 years ago by halk
0 2176 posted 13 years ago by mrmoneyc
/** * THIS FUNCTION WILL RENDER A CONTAINER OR SELF-CLOSING HTML ELEMENT. * IT AUTO DETECTS WHAT TYPE YOU WANT * BASED ON RATHER OR NOT YOU SET A _data KEY IN THE ARRAY OF * ATTRIBUTES PASSED TO THE FUNCTION * * USING AN ASSOCIATIVE ARRA...
0 2173 posted 13 years ago by halk
Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern <?php>
0 3351 posted 13 years ago by tinytiger
CSS code to add a CSS3 box shadow to the bottom of an element only.
0 3028 posted 13 years ago by Huskie
pass a variable from web site (in php, in this case) to iOS app.
0 4625 posted 13 years ago by code4mac
mi comment
0 1866 posted 13 years ago by darvein
CSS stylesheet template - including HTML5 reset, tweaks for mobile including media queries, print reset styles, and base styles for standardization
7 3839 posted 13 years ago by rickygri
A python static class that handles simple thread management.
0 1828 posted 13 years ago by ytech
https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
0 3385 posted 13 years ago by halk
Sends the user to a different Drupal page. This issues an on-site HTTP redirect. The function makes sure the redirected URL is formatted correctly.
0 1910 posted 13 years ago by dilios
Does not require http in the text to link. It must start with www however. Optionaly make the links popup in a new window.
0 2806 posted 13 years ago by halk
Ask the user with a confirmation dialog if the link should be followed or not.
0 1764 posted 13 years ago by gummiost
This is a public jsonp api. I use it with jQuery Like This: $.getJSON("http://yourdomain/yourpath/jsonp_api.php?method=getSchema&params=your_db_name&jsoncallback=?", function(data){ //DO SOMETHING WITH THE DATA HERE }...
1 2478 posted 13 years ago by halk
One line to determine start of previous month
1 1927 posted 13 years ago by snoopmole
1 ... 53 54 55 56 57 ... 552