Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
1330
posted 14 years ago by EgoAnt
Code snippet that allows developers to use a generic radiobuttonlist in the MVC Framework
0
1322
posted 14 years ago by sommertim
Code snippet that allows developers to use a generic radiobuttonlist in the MVC Framework
0
1302
posted 14 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
1926
posted 14 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
1574
posted 14 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
1410
posted 14 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
1608
posted 14 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
1341
posted 14 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
1408
posted 14 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
1952
posted 14 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
5339
posted 14 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
1550
posted 14 years ago by FMalk