Skip to main content

Timeline for Chinese Zodiac of the year

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Jan 2, 2016 at 18:31 history edited Conor O'Brien CC BY-SA 3.0
added 29 characters in body
Jan 2, 2016 at 15:51 comment added edc65 match(/.[a-z]+/g) instead of split (added value: split with capture is not ES6, is a FireFox only feature)(and 1 byte shorter)
Jan 1, 2016 at 21:42 comment added Neil @insertusernamehere Nice regex! (I though of using .match(/[A-Z][a-z]+/g) but yours is 3 bytes shorter.)
Jan 1, 2016 at 20:29 history edited Conor O'Brien CC BY-SA 3.0
added 44 characters in body
Jan 1, 2016 at 9:49 comment added insertusernamehere You can save 1 byte: Remove the 0 as separator and use this regex to split the string: /(?=[A-Z])/. Happy New Year. :)
Jan 1, 2016 at 3:47 comment added Mama Fun Roll That's why I recommended that the byte encoding be changed to ISO-8859-1 if possible.
Jan 1, 2016 at 3:44 comment added George Reith @ןnɟuɐɯɹɐןoɯ It will save 20 characters but the encoded string is 66 bytes E«t;«Ñn+t¶ ¢}©Ðz+±í¡«t2ä{-¢-z½¢ which is the same as the non-encoded so it's actually worse when you add btoa``.
Jan 1, 2016 at 3:38 comment added Mama Fun Roll You would do btoa`[encoded gibberish here]`, which should save at least 20 bytes.
Jan 1, 2016 at 2:49 comment added Conor O'Brien @ןnɟuɐɯɹɐןoɯ Oh. That's cool.
Jan 1, 2016 at 2:48 comment added Mama Fun Roll No, use atob to encode, and btoa to decode.
Jan 1, 2016 at 2:44 comment added Conor O'Brien @ןnɟuɐɯɹɐןoɯ btoas result looks to be 1.5x or more the length of the hardcoded string.
Jan 1, 2016 at 2:43 comment added Mama Fun Roll I feel like that string could use some btoa and atob. (You can also change the byte encoding, if that's allowed).
Jan 1, 2016 at 2:34 history edited Conor O'Brien CC BY-SA 3.0
added 44 characters in body
Jan 1, 2016 at 2:20 history answered Conor O'Brien CC BY-SA 3.0