Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A favicon (short for favorites icon), also known as a shortcut icon, website icon, URL icon, or bookmark icon is a 16×16 or 32×32 pixel square icon associated with a particular website or webpage. The interesting bit here is the apple-touch-icon wh...
0
2048
posted 15 years ago by cappellin
I’ve implemented something similar a couple of months ago. What we wanted was to prevent the cart from the old session from merging into the cart of the current session at the point when the customer login. If that describes what you want as well,...
0
1531
posted 15 years ago by TioSolid
C#
Simplified and Consistent Printing in Silverlight - with Page Margins, Shrink to Fit, and Landscape printing
The following extension method allows you to call Print() on any FrameworkElement, UIElement or group of elements, and print with a variety of settings such as landscape mode, shrink to fit, page centering, and more
0
2188
posted 15 years ago by alishahnovin
How to determine a static map image for google Maps as fallback for visitors without JS. The image can later be replaced via JS with the google Maps IFrame.
0
2071
posted 15 years ago by ichnoweb
Note: This example uses Arthropod Debugger (AIR App) which can be downloaded from here http://arthropod.stopp.se/
1
2207
posted 15 years ago by adrianparr
Simple bash script that sorts a series of numeric parameters using a temporary file and sort command.
0
1738
posted 15 years ago by Hexx
Adjust the size of the body field window. For use in hook_form_alter().
0
2250
posted 15 years ago by tgbdad
The code works if and only if your system is using English(United States) date format (i.e. "Web 05/11/2011").
If your systems is using English(United Kingdom) date format just replace %%B in the first and third rows with %%A.
0
4667
posted 15 years ago by cappellin
Save in a php file and run in the directory.
Remove directory files through ftp.
Remove php file
0
1740
posted 15 years ago by resting
use bulk load to save a large SAS dataset into oracle/DB2/SQL Server/ Teradata for joining with other tables etc..
Alternate link : http://www2.sas.com/proceedings/sugi29/106-29.pdf
0
4206
posted 15 years ago by mprabhuram
Convert a Drupal time stamp field into a readable format. The Drupal time stamp field is in the UNIX format.
1
2326
posted 15 years ago by daipratt
As of my ongoing preparation for the 1K tweet :) I was interested to see the 1000th tweet from some friends timeline. And when I didn't find an existing method, I thought I could write few jQuery lines to solve this..
1
2287
posted 15 years ago by mikemore