Skip to content

hello world #15

Closed
wants to merge 4 commits into from

3 participants

@jperla
jperla commented May 2, 2012

still a few issues.

the output.txt file is tab-delimited, but doesn't really work for programming languages.

how do I express multi-line code, Gabriel?

Also, my data.url is not a zip file, but a git uri, is that okay?

@yegg
DuckDuckGo member
yegg commented May 2, 2012

Thanks!

Check out the programming data format at the bottom of the Readme at https://github.com/duckduckgo/zeroclickinfo-fathead

That format will enable you to easily put the code in a code block like for https://duckduckgo.com/?q=perl%20split

For multiline you just need to escape \n as \n, i.e. add a backslash.

@rpicard
rpicard commented May 2, 2012

Just to clarify, I think he meant \\n.

@jperla
jperla commented May 3, 2012

Hey, yes I saw that readme. Thanks rpicard I understand now.

I updated the file. How's this plugin now?

@rpicard
rpicard commented May 3, 2012

That output doesn't quite look right. @yegg Shouldn't \n be in the output.txt where now it looks like this:

some code\
slash then a new line\
more slashes and new lines...

so that it would look like this:

some code\nno slash then a new line\nstill no slashes and new lines...
@jperla
jperla commented May 3, 2012
@rpicard
rpicard commented May 8, 2012

Sorry for the delay. @jperla I mean that there are backslashes at the end of all of your lines (as in the first block of code from my previous comment" when it should look like the second block of code.

@jperla
jperla commented May 8, 2012
@jperla
jperla commented May 8, 2012

Hi Rob, thanks I fixed that. I also escaped and made visible the tabs.

@rpicard
rpicard commented May 8, 2012

@jperla Thanks! Looking better. What's up with line 112 though? Is that a PNG?

@jperla
jperla commented May 8, 2012
@jperla
jperla commented May 8, 2012

done

@rpicard
rpicard commented May 10, 2012

@jperla I've merged the pull request. Thanks for your submission!

@rpicard rpicard closed this May 10, 2012
@rpicard rpicard reopened this May 10, 2012
@rpicard
rpicard commented May 10, 2012

@jperla We're thinking that it would be good if this triggered on perl hello world and hello world in perl as well as the current hello world perl. It would just require printing two more lines for each language with the alternate triggers. If you want to work on that it'd be appreciated!

You can email me at robert at duckduckgo dot com if you have any questions.

@rpicard rpicard closed this May 10, 2012
@jperla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.