<?xml version="1.0"?>
<Node1
...

C# Formatting XML

by JimMcKeeth, June 18, 2010 01:46, 3 refactorings, tagged with xml, formatting, simplicity, performance

I have an unformatted XML s...

E5ca3abec062f8174570a4b1d1c840d8 Talk
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...

55502f40dc8b7c769880b10874abc9d0 Talk
function format_money(n) {
  var buf = [], 
...

JavaScript Money formatting

by Tj Holowaychuk, November 25, 2009 23:05, 7 refactorings, tagged with formatting, money

Just needed to whip up a re...

F1e3ab214a976a39cfd713bc93deb10f Talk
function formatCurrency(num) {
    num = num.toString().replace(/\\$|\\,/g,'');
    if (isNaN(num)) num = '0';
...

JavaScript Format Currency

by slf, January 20, 2009 20:01, 7 refactorings, tagged with math, regex, formatting

During a code review we fou...

098e5c1a565b47e9860539fbebc3fa98 Talk
<?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...

E90ba01aea329491b312280d1eea606b Talk