Skip to content

Instantly share code, notes, and snippets.

View gist:1904652
#!/bin/bash
mkdir ~/.arc_install
cd ~/.arc_install
git clone git://github.com/facebook/libphutil.git
git clone git://github.com/facebook/arcanist.git
echo
echo
echo "DONE *************************************************"
@makinde
makinde / arc_setup.sh
Created Feb 3, 2012
Arc Setup (Ubuntu)
View arc_setup.sh
#!/bin/bash
if ! hash git &> /dev/null || ! hash php &> /dev/null; then
echo -e " *****\n ***** INSTALLING GIT AND PHP\n *****"
if hash apt-get &> /dev/null; then
sudo apt-get install git-core php5-cli php5-curl
elif hash port &> /dev/null; then
sudo port install php5-curl
elif hash fink &> /dev/null; then
View primer.js
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};