Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Obtiene un identificador usando el nombre del host, id del proceso PHP y usando uniqid.
Además se agrega una ruta para ver cómo quedarÃa almacenada en disco la información.
0
552
posted 12 years ago by porquero
Reset a branch. Notably used for moving a commit from one branch to another, or fix a commit on 'no branch'
0
985
posted 12 years ago by Glycerine
Numerical Methods application for solving system of equation using Gaussian Elimination based on this Wikipedia article: http://j.mp/GV3PcN
0
775
posted 12 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
4893
posted 12 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
403
posted 12 years ago by treociti
Removes duplicating elements from Array, containing only objects of Point class
0
901
posted 12 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
808
posted 12 years ago by kendsnyder
Test PAN CARDS to use while integrating BBVA payment gateway (BBVA is Banco Bilbao Vizcaya Argentaria)
0
703
posted 12 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
928
posted 12 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
660
posted 12 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
925
posted 12 years ago by osccar
This example adds a horizontally-centered TextView to the bottom of the RelativeLayout called 'layout'.
0
1141
posted 12 years ago by BenClayton
simple command that resize and crop, if necessary, an image, centering the image.
0
897
posted 12 years ago by artaserse
A useful function for different formats of time or if you are dealing with time in PHP code.
0
700
posted 12 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
889
posted 12 years ago by EmbeddedInsanity