1
2
3
4
def unbold_pipes (wikibold_string)
     wikibold_string.
      split('|').
...

Ruby Ugly split/join

by Muke Tever, July 30, 2009 19:52, 3 refactorings, tagged with regexp, rails, split

This is supposed to be taki...

F4192eeb4b26e96deab8b5c68926105d Talk
1
2
3
4
public static class MidnightPartitioner
    {
        public struct SchedulePartition
...

C# Split DateTime Range Around...

by MRuston, July 01, 2009 14:42, 3 refactorings, tagged with DateTime, midnight, split

I have this little class ca...

Bac730989e88a593d5f23cfa4d41dc6f Talk
1
2
3
def first_day_of_month(selected_date)
...

Ruby Splitting array into define...

by Bonobo, March 25, 2009 14:04, 4 refactorings, tagged with ruby, arrays, split, date, calendar

I'm mainly interested in op...

4e0322e79d041875f3ef7db64e2d5b18 Talk
1
2
3
4
char **split (char *string, char sep, char escape) {

    char **ret = NULL;
...

C A Java-like function split

by Fran, September 16, 2008 08:32, 3 refactorings, tagged with c, split, strings

This function splits a stri...

3c50320adac71693cef577a5dbd3d4d4 Talk
1
2
3
    artists = [1, 2, 3]
    column_1 = artists[0..artists.size/2]
    column_2 = artists[artists.size/2+1..artists.size]

Ruby Split an array into half

by gudata, August 14, 2008 09:49, 7 refactorings, tagged with ruby, array, split

The example works if the ar...

4ee8e20a519f3afdcd03bcf24681dbd8 Talk