Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
1387
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
1139
posted 14 years ago by parkerkrhoyt
A much better implementation of the parameterized and randomized CrabWorld
0
900
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
717
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
1105
posted 14 years ago by TopcatSoftware
my wordpress loop with paging support and category,tag filteration
3
948
posted 14 years ago by root_hacker
From webworks, book "CMS Design Using Php and jQuery", page 93
0
824
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
1011
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
1189
posted 14 years ago by gandreini