Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0
670
posted 13 years ago by miceno
This snippet saves in the $return array all the names of the fields that a content type has added with CCK, has to be installed the cck module.
0
1422
posted 13 years ago by JohnnyGamba
Script used to access the Envato API, and get extra details using Curl.
This script will only work on PHP5 on a Linux hosting account (with safe mode / openbasedir disabled). Will need slight adjustment if trying to run it otherwise.
You are w...
1
1151
posted 13 years ago by dtbaker
JavaScript file that creates the HTML5 elements for IE8 and below (by Remy Sharp). Just call the file from the head of the html in a conditional comment [if lte IE 8].
0
636
posted 13 years ago by polly42
Today I need Trim() function in sql, but in Sql 2005 there is no function. Because of that I wrote this user (scalar) fuction.
It's very basic;
-First; it's Right Trim (RTrim()) string
- And then Left Trim (LTrim())
0
602
posted 13 years ago by emregulcan
This can be used to help load, play and monitor playback of external video.
1
874
posted 13 years ago by adrianparr
CSS:
<pre><code>div.pagination {
padding: 3px;
margin: 3px;
}
div.pagination a {
padding: 2px 5px 2px 5px;
margin: 2px;
border: 1px solid #AAAADD;
text-decoration: none; /* no underline */
color: #000099;
}
div.pagination a:...
1
645
posted 13 years ago by Alexxandar
To change your textview id
android:id=â€@+id/TextViewâ€
To change your textview text
android:text=â€This is my first textview sample applicationâ€
To enable or disable textview
android:enabled=â€falseâ€
To change your textview width...
0
688
posted 13 years ago by hmvrulz
Prints an array (recursive) as PHP code (can be pasted into a php file and it will work).
Note: This function can process arrays with integers/strings/sub-arrays. It is impossible to process resources (they have a state), and while it is possible...
1
881
posted 13 years ago by BrunoDeBarros