Skip to content

Instantly share code, notes, and snippets.

@frace
frace / 0_reuse_code.js
Last active August 29, 2015 14:09
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
@frace
frace / pidof
Created November 27, 2012 20:13 — forked from vgrichina/pidof
pidof for OS X
#!/usr/bin/env bash
if (( $# == 1 )); then
declare proc="$(ps axc | grep "$1")"
read -ra pid <<< "$proc"
if (( $pid )); then
echo $pid
exit 0
else