Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code snippet that allows developers to use a generic radiobuttonlist in the MVC Framework
0
1700
posted 15 years ago by sommertim
This requires my [date formatting script](http://snipplr.com/view/54806/javascript-date-formatting/).
(date).toISO() converts the Date object to an ISO 8601 string
Date.fromISO() converts an ISO 8601 string to a Date object
0
2351
posted 15 years ago by wizard04
This needs to be used with the code that gets output using the quick highlighter. Follow these steps to use with WordPress:
First copy your php code
Go to http://quickhighlighter.com/
Paste your code into the textarea
Click Highli...
0
1988
posted 15 years ago by jeremyjared74
I use this to toss all the junk from the header, add a favicon, remove useless admin elements, and block WordPress' ancient jQuery file from embedding.
0
1798
posted 15 years ago by ethicka
Descripción: Valida los campos de fechas que requieren ser comparados (una fecha posterior a la otra) enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clas...
0
2004
posted 15 years ago by alberomo
Descripción: Valida los campos de fechas enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, llama a la función err...
0
1697
posted 15 years ago by alberomo
When modifying file permissions it is sometimes necessary to go back to the drawing board and set back to the default permissions. The following command can be used via ssh and takes a couple seconds vs trying to do this via ftp file by file (which c...
0
1798
posted 15 years ago by klovera
Code obtained from a [stackoverflow question](http://stackoverflow.com/questions/4672279/bresenham-algorithm-in-javascript). This is a javascript implementation of the [Bresenham line algorithm](http://en.wikipedia.org/wiki/Bresenham's_line_algorithm...
0
2397
posted 15 years ago by nefd
used this to download a bunch of wsdls. Put all addresses in a file and execute the script like
groovy download.groovy file.txt
0
5851
posted 15 years ago by m3rol666
Find how many factors there is in N! for a prime P
Ex: 5! = (2^3)*(3^1)*(5^1)
mult(5,2) = 3
mult(5,3) = 1
mult(5,5) = 1
all else = 0
0
1959
posted 15 years ago by FMalk
Descripción: Accede a un archivo xml con los parámetros del formulario.
Recibe: El tipo de mensaje de error, el idioma y la ruta del archivo xml.
Devuelve: True si el formulario valida completo y debe enviarse y false si no.
0
1790
posted 15 years ago by alberomo
Descripción: Valida los campos que requieren de una longitud máxima de carácteres. En el caso de que no sea validado, establece la variable todoOk en false y pinta el error.
Recibe: El elemento y los parámetros del fomulario.
0
1732
posted 15 years ago by alberomo