Skip to content

Instantly share code, notes, and snippets.

@howardabrams
Created November 4, 2019 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howardabrams/d8c5ddcf076ec1dd08f96e66fdadd708 to your computer and use it in GitHub Desktop.
Save howardabrams/d8c5ddcf076ec1dd08f96e66fdadd708 to your computer and use it in GitHub Desktop.
#+NAME: foobar-contents
#+begin_src emacs-lisp
(with-temp-buffer
(insert-file "/tmp/foobar")
(buffer-string))
#+end_src
#+RESULTS: foobar-contents
: Curabitur lacinia pulvinar nibh. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.
: Donec at pede. Curabitur lacinia pulvinar nibh. Nam euismod tellus id erat.
Replace the "shell" below with "ob-http"
#+begin_src shell :var payload=foobar-contents
echo $payload
#+end_src
#+RESULTS:
| Curabitur lacinia pulvinar nibh. Proin neque massa | cursus ut | gravida ut | lobortis eget | lacus. Donec at pede. Curabitur lacinia pulvinar nibh. Nam euismod tellus id erat. |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment