Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this is how to automatically get short urls for your blog posts in wordpress,
What you need
is to decide which tinyurl service you will be using and get its api URL,
for example rinyurl.com , bit,ly, tr.im,
here are the api URLS for the mo...
0
2287
posted 17 years ago by nerdsane
This is a snippet to assign an active class to active links when the navigation is included in a php file.
1
1847
posted 17 years ago by grazz
This describes how to embed font in to Flex(mxml) file without using the <mx:style> tag (fully AS3).
1
2253
posted 17 years ago by shabith
I needed to clean up strings with an unpredictable number of spaces interspersed throughout. Powershell's Replace method to the rescue.
1
5477
posted 17 years ago by ericmorin21
Remove item (number or string) from array, using jQuery (method grep).
3
18978
posted 17 years ago by gustavopaes
Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules
2
1768
posted 17 years ago by sfjalar
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
3
1757
posted 17 years ago by goddess
This is an example piece of code that will load a SubSonic collection into the "col1" object. The collection class is told to look for the column "VendorId" in the products table and pull it based based on the matching supplied vendorId.
0
1716
posted 17 years ago by mordecaix7
Cairngorm pretty much just works in Gumbo straight out of the box. Only hiccup I found was that you can't instantiate the services and controller components using mxml tags. Just define them once in the main application using ActionScript and you s...
0
3761
posted 17 years ago by GarthDB