Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0
1727
posted 15 years ago by FreaKzero
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1
1721
posted 15 years ago by daipratt
Used this on the vox site to find a custom post type and then assign a variable to get different classes for the output.
0
2433
posted 15 years ago by dallasbpeters
To rename a bunch of files from "*.foo" to "*.bar" (like windows' REN *.foo *.bar) in unix.
Looking at the solution, it is easy to adapt it to more powerful character substitutions on a 1 to 1 basis.
If you want to test what will be executed b...
0
1655
posted 15 years ago by jarnaldich
This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data.
1
1523
posted 15 years ago by stolkchris
GET_HASH_VALUE Function
This function computes a hash value for the given string.
Syntax
DBMS_UTILITY.GET_HASH_VALUE (
name VARCHAR2,
base NUMBER,
hash_size NUMBER)
RETURN NUMBER;
1
1754
posted 15 years ago by mprabhuram
used on: ezpl theme, header.php
just be sure to enqueue for any such scripts BEFORE wp_head(). Otherwise they don't get loaded. That is to say, it's probably best to have wp_head() rigth before </head>.
0
1341
posted 15 years ago by mjsiemer
Dumps the contents of a mysql database to a .sql file named by the current date.
0
1590
posted 15 years ago by gdvickery
Demo + FLA Download:http://www.adamcoulombe.info/lab/as3/PolkaDot-Hover-Repulsion-Effect.html .................. This demo uses Arnaud Icard's Traer AS3 port for physics to simulate repulsion. Each polka-dot will be repelled from the polka dot that y...
2
1887
posted 15 years ago by adamcoulombe