Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules](http://tools.ietf.org/html/rfc5322#page-15 "RFC 5322, Page 15"). It supports named capt...
1
2354
posted 17 years ago by dreadwarrior
Runtime Object Evaluator; search for string object properties that start with !! and eval the content.
Very useful if you want to load JSON from file and evaluate its fields on effective usage or access global variables at runtime.
[Follow me on T...
1
1521
posted 17 years ago by straps
function as jquery plugin to test if selector is found on the current page. Sample use:
if ( $("#myID").onpage() ) { $("#myID img").click(function(){ //do this..here.. });
0
1823
posted 17 years ago by pixelhandler
A few days ago i was looking for a script witch one will help me to unzip a file using PHP . There is 2 different ways to do it.One just execute a commend to unzip the file in the shell using PHP and another one is using library functions
2
2170
posted 17 years ago by fackz
Save this file as a .php somewhere on your webserver - NOT A WEB ACCESSIBLE LOCATION! Edit the lines in the top portion to suit your needs and call the file from bash like this: $> php cpanel-backup.php
You can use a cronjob to make this run autom...
1
2118
posted 17 years ago by arnoldb
This assumes HTML that looks like this:
<pre><code>
<div id="containing_div">
<div id="div_1" style="background-color:red" class="visible_div">
<p>Test Content 1</p&...
2
1615
posted 17 years ago by chippper
Simply change the email address and add this to the bottom of your .bashrc file in your home directory. You may also want to add this to the .bashrc in the /root directory, and the .profile in /etc to ensure you are notified anytime your server is ac...
0
1711
posted 17 years ago by arnoldb
how to link ie only stylesheets and stylesheets by generation of ie
2
2303
posted 17 years ago by thesmu
Split a string containing HTTP response into a array with HTTP headers and a string with HTTP content
1
2435
posted 17 years ago by touv
On a new layer, add the following Actionscript to the frame requiring to be paused.
1000 represents the delay in milliseconds, being 1 second.
0
4202
posted 17 years ago by hotdiggity
1. Create button that covers the entire ad.
2. Create an instance of the button on the main timeline and name it "buttonClip" in the properties palette.
3. On a new layer add ActionScript to the timeline as follows:
0
3933
posted 17 years ago by hotdiggity
On a new actions layer, add the following script to frames requiring to be paused.
10000 represents the delay milliseconds (10 seconds).
1
2567
posted 17 years ago by hotdiggity
1. Create button that covers the entire ad.
2. Create an instance of the button on the main timeline and name it "clickTag_bn" in the properties palette.
3. On a new layer add ActionScript to the timeline as follows:
2
2297
posted 17 years ago by hotdiggity