Back to front pageView on Hacker News (opens in a new tab)Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years agogist.github.com (opens in a new tab)#!/usr/bin/env docker run#!/usr/bin/env docker run. GitHub Gist: instantly share code, notes, and snippets.Comments (173) 27 threadsShow all commentsShowing thread 17 of 27[-]benatkin2 years ago2 replies#I feel comfortable with fenced code blocks. Using heredocs all the time, not so much. ```js title="/root/server.js" console.log('test') ``` or `/root/server.js` ```js console.log('test') ``` vs RUN </root/server.js console.log('test') EOF However the Markdown one is better if the syntax highlighting theme makes the code fence a color that doesn't stick out - either monochrome or closer to the background color.pushedx2 years ago#The file is a Dockerfile with a shebang line that ignores the comments with a regex. Code fences would not be valid.The point of this isn't to share this code, it's a demo of the clever shebang line.[-]bionhoward2 years ago1 reply#Brilliant idea. Single markdown file for a whole app stack?benatkin2 years ago#Multiple markdown files, presenting code more like gists where you can read them top to bottom, plus with docs in between...
Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years ago
benatkin2 years ago2 replies#I feel comfortable with fenced code blocks. Using heredocs all the time, not so much. ```js title="/root/server.js" console.log('test') ``` or `/root/server.js` ```js console.log('test') ``` vs RUN </root/server.js console.log('test') EOF However the Markdown one is better if the syntax highlighting theme makes the code fence a color that doesn't stick out - either monochrome or closer to the background color.
pushedx2 years ago#The file is a Dockerfile with a shebang line that ignores the comments with a regex. Code fences would not be valid.The point of this isn't to share this code, it's a demo of the clever shebang line.
benatkin2 years ago#Multiple markdown files, presenting code more like gists where you can read them top to bottom, plus with docs in between...
Comments (173) 27 threads
Show all comments
Showing thread 17 of 27
The point of this isn't to share this code, it's a demo of the clever shebang line.