Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Numerical Methods application for solving system of equation using Gaussian Elimination based on this Wikipedia article: http://j.mp/GV3PcN
0
2092
posted 14 years ago by Bangonkali
This snippet pulls down an image from a URL into a byte(). From there you can re-size or save.
Don't forget the necessary try - catch.
0
8098
posted 14 years ago by ryanfiorini
bloginfo('name') is a function that generates the name of a WordPress site, the one used in the installation of WordPress and inserted in the Blog Name field under General Settings.
0
1174
posted 14 years ago by treociti
Removes duplicating elements from Array, containing only objects of Point class
0
4267
posted 14 years ago by romech
jQuery plugin to save individual form fields each time something changes. Usage: `$('#MyForm').autosave(url, options);` where `url` defaults to form.method and `options` defaults to $.fn.autosave.defaultOptions
(UNTESTED)
0
1911
posted 14 years ago by kendsnyder
Test PAN CARDS to use while integrating BBVA payment gateway (BBVA is Banco Bilbao Vizcaya Argentaria)
0
1868
posted 14 years ago by eowynx
Requirement from work was to refactor an 8000 line if elseif code block to select case syntax. Not a manual task, even for a 1984 olympics button bashing champ.
note, id is the test variable here,
as in
elseif (id ="test") then ...
0
4068
posted 14 years ago by pflangan
This goes through the specified div, and finds a div with the class of current. It then removes the class from that div, and adds it onto the next one. Note: Through CSS make the current class with a display block, and the slide class with a displ...
0
1594
posted 14 years ago by accelm
Abstract class from which other classes can be derived to handle database access and data retrieval.
Constants for database connection (DB_DSN, DB_USERNAME, etc.) must be set in another php file (eg. config.php)
1
2173
posted 14 years ago by osccar
This example adds a horizontally-centered TextView to the bottom of the RelativeLayout called 'layout'.
0
8005
posted 14 years ago by BenClayton
simple command that resize and crop, if necessary, an image, centering the image.
0
3033
posted 14 years ago by artaserse
A useful function for different formats of time or if you are dealing with time in PHP code.
0
1726
posted 14 years ago by visionlighter
Splits on new line, to load array, and cycle through each line in array.
In this example, we are loading the holding array "@thing" with data from the "_content" key of the $results hashref.
0
4173
posted 14 years ago by EmbeddedInsanity
PHP
Remove / Replace - href / anchor /link - in html /string - preg_replace - php - regex - regular expression
Replaces all links within href part of anchor in a HTML-String.
1
7471
posted 14 years ago by rwunsch
Replace the code below in your templates 'media.phtml' file. This has mouseover and mouseout but can be removed it needed.
0
1872
posted 14 years ago by TheJasonParker
There are a couple of steps involved to connect to an SAP web service. Really, its about the same as connecting to a regular ASMX web service, using the .ajax() function. Make sure you have a WSDL with the function and connection information. I recom...
0
2713
posted 14 years ago by mattvbiggs