Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js: evaluate + print can be done via node -p #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions markup/scripting
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const _ = require('lodash');||import os, re, sys||##gray|# sudo apt install php-
@<&nbsp;>@||$ node foo.js||$ python foo.py||$ php -f foo.php||$ ruby foo.rb||
||[[# repl]][#repl-note repl] _
@<&nbsp;>@||$ node||$ python||$ php -a||$ irb||
||[[# cmd-line-program]][#cmd-line-program-note command line program]||$ node -e "console.log('hi!');"||$ python -c 'print("hi!")'||$ php -r 'echo "hi!\n";'||$ ruby -e 'puts "hi!"'||
||[[# cmd-line-program]][#cmd-line-program-note command line program]||$ node -e "console.log('hi!');"
$ node -p "'hi!'"||$ python -c 'print("hi!")'||$ php -r 'echo "hi!\n";'||$ ruby -e 'puts "hi!"'||
||[[# block-delimiters]][#block-delimiters-note block delimiters] _
@<&nbsp;>@||{}||: ##gray|//and offside rule//##||{}||{} _
do end||
Expand Down Expand Up @@ -4885,4 +4886,4 @@ Ruby MRI threads are operating system threads, but a global interpreter lock pre
[[# wait-on-thread-note]]
++ [#wait-on-thread wait on thread]

How to make a thread wait for another thread to finish.
How to make a thread wait for another thread to finish.