Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).
Example:
var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };
var template: String = "The %{SPEED}...
0
1268
posted 14 years ago by mgeduld
Accessing the 37signals product Highrise API requires HTTPS. I initially had problems with this (seemingly the certificate authority) from ColdFusion initially. Found the solution by tapping into the underlying Java layer to manage the providers.
0
1055
posted 14 years ago by parkerkrhoyt
A much better implementation of the parameterized and randomized CrabWorld
0
830
posted 14 years ago by joswald
I had a subtle mistake in my code that was causing the exception. The corrected source code is below:
0
648
posted 14 years ago by joswald
Specifications of the TOPIC database format, a standardized structure for plain text databases that's easy to read and edit in most text editors, and
easy to programmatically parse as well.
0
1030
posted 14 years ago by TopcatSoftware
my wordpress loop with paging support and category,tag filteration
3
871
posted 14 years ago by root_hacker
From webworks, book "CMS Design Using Php and jQuery", page 93
0
761
posted 14 years ago by shinokada
This one is simple yet very useful. You can do alternating row colors with 2 simple lines of jQuery
4
932
posted 14 years ago by BlueIceStudios
This can be useful when you retrieve strings from an XML or script that have whitespaces at the beginning or the end.
0
1104
posted 14 years ago by gandreini