Skip to content

Instantly share code, notes, and snippets.

View clintandrewhall's full-sized avatar
⌨️
hacking away

Clint Andrew Hall clintandrewhall

⌨️
hacking away
View GitHub Profile
@clintandrewhall
clintandrewhall / node-and-npm-in-30-seconds.sh
Created November 7, 2011 20:29 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
@clintandrewhall
clintandrewhall / MyTest
Created July 4, 2011 02:40
Learning code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<title>QnA</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>
<body>
<div id="container" class="clearfix">
/**
* @constructor
* @param {Object} config A valid configuration.
*/
var Photos = function(config) {
var core = require("./core")(config),
logger = require('log4js')(config.log4js).getLogger("node-foursquare.Photos");
/**
* Retrieve a photo from Foursquare.