Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
One must escape "special characters" in id names using two backslashes.
0
1925
posted 17 years ago by penguin999
The Drupal website will be updated every 45 minutes after the hour.
2
1823
posted 17 years ago by chrisaiv
A common Drupal problem: how to save e.g. your blocks configuration without dragging an X Gig database around.
A simple command that dumps a table in a way that it can be inserted into SVN.
Every row is dumped as a single line, and they are sor...
1
1788
posted 17 years ago by berkes
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
1
1716
posted 17 years ago by kwilson
Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);
2
1957
posted 17 years ago by ozke
Magic quotes for incoming GET/POST/Cookie data.
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
0
1734
posted 17 years ago by lzyy
In a migration scenario, you may need to take a backup and a differential later to split the transfer over time. But to make it work, there shouldn't be any other full backup in between. This will help you check the last full backup date. Of course,...
0
1862
posted 17 years ago by pollusb
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2
1820
posted 17 years ago by caruso_g
Use [short] in a post to insert the text from the function.
2
1768
posted 17 years ago by kristarella
Replace and append the following settings in modules/fckeditor/fckeditor.config.js. Has to be re applied after each update.
0
1631
posted 17 years ago by zachharkey
This sql query will select the past version information about a given file from the database. An example would be searching for %ApprovalHistoryVOImpl% would return all past version numbers (in the database) for the ApprovalHistoryVOImpl.class file....
0
1980
posted 17 years ago by theonlyalterego
These are two separate code snippets. One is for a crontab, the other to be run by cron.
Together they create a new folder every day and fills it with 240 jpeg images (10 per hour) of whatever it is that you're doing.
The next step for me is t...
1
1625
posted 17 years ago by ThomasGHenry
Only works in new tab, because of limitation of cross-domain AJAX
0
1568
posted 17 years ago by angusdev