Skip to main content

Timeline for Build a Faulty XKCD Browser

Current License: CC BY-SA 3.0

18 events
when toggle format what by license comment
Jul 2, 2017 at 23:12 comment added TheInitializer If you're willing to add 4 extra bytes, you can stop it from breaking on any comic with quotes: from requests import*;exec'print """%s"""'%get('http://xkcd.com/%d/info.0.json'%input()).json()['alt']
Jun 30, 2017 at 17:14 history edited totallyhuman CC BY-SA 3.0
added 87 characters in body
Jun 30, 2017 at 17:07 history edited totallyhuman CC BY-SA 3.0
added 217 characters in body
Jun 30, 2017 at 16:48 history edited totallyhuman CC BY-SA 3.0
Whoops, I forgot to actually make the changes. ><
Jun 30, 2017 at 16:38 comment added Mr. Xcoder @MrZander Yes, it is standard, and unused function names do not add towards the score.
Jun 30, 2017 at 16:36 comment added MrZander @totallyhuman Is it standard on codegolf.se that user input doesn't need to be counted towards total character count?
Jun 30, 2017 at 16:34 comment added totallyhuman @MrZander The first line is an anonymous lambda that can be assigned to a variable to be run. For example, both f = lambda n: n * 2; print f(2) or (lambda n: n * 2)(2) will print 4.
Jun 30, 2017 at 16:32 comment added MrZander how do you actually run this with a parameter? Like, how do you run a nameless lambda?
Jun 30, 2017 at 15:01 history edited totallyhuman CC BY-SA 3.0
added 44 characters in body
Jun 30, 2017 at 14:53 comment added Jonathan Allan ... http:// can be used here too, I think.
Jun 30, 2017 at 14:13 comment added musicman523 @totallyhuman Ya got me ;)
Jun 30, 2017 at 14:12 comment added totallyhuman @musicman523 Ninja'd you. ;)
Jun 30, 2017 at 14:11 history edited totallyhuman CC BY-SA 3.0
deleted 49 characters in body
Jun 30, 2017 at 14:11 comment added musicman523 You can change n in[404,859] to n==859, because the JSON decoder fails for 404 anyway.
Jun 30, 2017 at 13:56 history edited totallyhuman CC BY-SA 3.0
added 9 characters in body
Jun 30, 2017 at 13:55 comment added totallyhuman Oh, I didn't think of that. Thanks!
Jun 30, 2017 at 13:54 comment added Erik the Outgolfer I think you can remove ,a.
Jun 30, 2017 at 13:53 history answered totallyhuman CC BY-SA 3.0