Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Here's how I was able to capture the HREF of a page using actionscript
3
1861
posted 17 years ago by chrisaiv
reference:
http://codex.wordpress.org/Template_Tags/wp_list_categories
1
1592
posted 17 years ago by Ashung
1. Edit the html form 'action' to point to your PHP page that handles the upload.
2. Create the php page with the code below
3. Define Paths in PHP lines: 3 , 4 of php file
4. Create matching folder to paths in #3 on server.
5. chmod that folder...
4
2488
posted 17 years ago by jadedbat
This uses the concatenation operator "##" to insert a comment "//"
0
6929
posted 17 years ago by jimfred
Using Groovy you can extend the Sql, DataSet and GroovyResultSet objects present in the language to do simple object mapping similar to iBatis et al. An example of using the code below
/* POGO used in the mapping */
class BranchFax {...
0
2293
posted 17 years ago by kouphax
I thought I would share this simple username password PHP auth script. It leans on HTTP to secure a page.. not bulletproof but quick and painless.
3
2028
posted 17 years ago by jadedbat
This is simply to serve as a reminder for me as to Firefox's desired font size based on a 16pt base.
0
1899
posted 17 years ago by conspirator
Python
htmlfill and Pylons integration, form validation inside controller and Mako template example with i18n
These are code snippets from different files for a Pylons project that show a working (provided the environment) htmlfill example.
1
2600
posted 17 years ago by wackysalut
Here is a well formed list of all U.S. States, with their names, abbreviation and all Counties in each state.
1
2506
posted 17 years ago by discorax
Used to display the latest X number of posts from the specified category.
5
2420
posted 17 years ago by creator
For use on a single page... Only displays the content if the displayed post is in the specified category. You can use the category slug or the category ID if you know it.
6
2770
posted 17 years ago by creator
This source code uses the xml file posted here(http://snipplr.com/view/4138/backup-script2--confg-file/) to know which file should be sent and mailing configuration.
0
1678
posted 17 years ago by mjsmagalhaes
Checks the size of skypes online "status buttons" to determine online/offline status, so you're able to use custom buttons, text.. etc, etc
2
1787
posted 17 years ago by davidsword
Q: How do I write a structure to a file?
A: You can easily write a structure to a file as long as the structure is what is known as a POD (Plain Old Data) type. This means that all members of the structure must be of a fixed size, which implies th...
1
7249
posted 17 years ago by architect
Split and manipulate URLs easily with this module. It has similar interface to Python's urlparse library. This is patched and modified version from Denis's orignal implementation.
1
2265
posted 17 years ago by miohtama