Skip to content

Instantly share code, notes, and snippets.

ARGS=`some command | sed -e 's/"/\\"/g'` # expecting to replace " with \", doesn't work. instead use:
ARGS=$(some command | sed -e 's/"/\\"/g')
nagarajasr / 0_reuse_code.js
Created February 17, 2017 08:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
nagarajasr / functest
Last active August 29, 2015 14:19
SQL function calling javascript function in a subquery does not work as expected
create class buyer extends V
create class item extends V
create property item.quantity String
create class bought extends E
create vertex buyer
create vertex item set quantity=3
create edge from (select from buyer) to (select from item)