Skip to content

Instantly share code, notes, and snippets.

@jaymcgavren
jaymcgavren / home_dir_homebrew.sh
Last active July 27, 2022 23:56
Install Homebrew to your home directory. Great for running Homebrew as a guest user on a Mac.
git clone https://github.com/Homebrew/brew.git
export PATH=${HOME}/brew/bin:${PATH}
@blabber
blabber / reduce.g
Created June 13, 2016 21:07
GVPR script to extract subgraphs
BEGIN{
if (ARGC != 2) {
print("This script takes exactly two parameter. 1: name of node, 2: number of hops");
exit(1);
}
void reduce_in(graph_t _g, node_t _n, edge_t _e, int _d){
_e = fstin(_n);
while (_e != NULL) {
clone(_g, _e);