1 2 3
my %fbmap = (3 => 'Fizz', 5 => 'Buzz'); my $fizzbuzz = sub { ...
C# On I hate to do this, but...
by Chris Jester-Young,
July 16, 2008 10:20
Implementation in Perl. :-P...
1 2 3 4
static class ExtensionsMethods { public static bool IsMultipleOf(this int number, int num) ...
1
string descriptions = String.Join(",", GetItems().ConvertAll(new Converter<Item, string>(delegate(Item item) { return item.Description; })).ToArray());
1 2 3 4
// ** DO NOT USE ** // THIS IS BAD BROKEN CODE, ONLY DISPLAYED FOR BENCHMARKING PURPOSES! if (!tagpaired[i] && !ignoredtags.Contains(tagname)) ...
1 2 3 4
var ignoredtags = new List<String> { "p", "img", "br" }; if (!tagpaired[i] && !ignoredtags.Contains(tagname)) ...
1 2 3 4
public static string BalanceTags(string html) { MatchCollection tags = _namedtags.Matches(html); ...
1 2 3
HtmlDocument doc = new HtmlDocument();
...
1 2
if (!tagpaired[i] && !ignoredtags.Contains("<" + tagname)) continue;
1 2 3 4
public static string AsCommaSeparatedValues<T>(this IEnumerable<T> items, Func<T, string> translator) { return items.Select(translator).AsCommaSeparatedValues(); ...
C# On Traversing a List and colle...
by Wolfbyte,
July 10, 2008 08:22
Curses! I wasn't logged in ...
1 2 3
static void Main(string[] args) { ...
C# On Traversing a List and colle...
by Mike Minutillo,
July 10, 2008 05:37
I'd consider making it more...


@Wolfbyte: Haha, nice. Very...