Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is just a quick sample that shows how to have a button visible on a page only if the person has JavaScript enabled.
0
681
posted 13 years ago by EgoAnt
Code snippet that allows developers to use a generic radiobuttonlist in the MVC Framework
0
677
posted 13 years ago by sommertim
Code snippet that allows developers to use a generic radiobuttonlist in the MVC Framework
0
682
posted 13 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
1022
posted 13 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
802
posted 13 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
737
posted 13 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
711
posted 13 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
640
posted 13 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
690
posted 13 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
1126
posted 13 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
2271
posted 13 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
697
posted 13 years ago by FMalk