<?xml version="1.0"?> <Node1 ...
C# Formatting XML
by JimMcKeeth,
June 18, 2010 01:46,
3 refactorings, tagged with xml, formatting, simplicity, performance
def splitlines()
sraw = self.to_s
sraw = sraw.gsub(/\r\n/,"\n");
...
Ruby line up delimited text into...
by dreftymac.myopenid.com,
January 11, 2010 17:02,
No refactoring, tagged with ruby, formatting, delimited, pretty
allow any character(s) as t...
function format_money(n) {
var buf = [],
...
JavaScript Money formatting
Just needed to whip up a re...
function formatCurrency(num) {
num = num.toString().replace(/\\$|\\,/g,'');
if (isNaN(num)) num = '0';
...
JavaScript Format Currency
During a code review we fou...
<?php
function fetch($url,$start,$end){
...
PHP Wikipedia API and text form...
by z3ro,
January 09, 2008 18:37,
4 refactorings, tagged with convert, html, plain html, formatting, parser, regex, xml, php, wikimedia, api, wikipedia
I need to add Wikipedia's i...
I have an unformatted XML s...