Skip to content

Instantly share code, notes, and snippets.

@adityasaxena
adityasaxena / index.html
Last active August 29, 2015 14:21
Custom Radio Buttons and Checkboxes// source http://jsbin.com/rekiqeqeqi
<!DOCTYPE html>
<html>
<head>
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="style.css" type="text/css" rel="stylesheet" />
<meta charset="utf-8">
<title>Custom Radio Buttons and Checkboxes</title>
</head>
<body>
<h2>Custom Radio Buttons and Checkboxes</h2>
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 https://www.npmjs.org/install.sh | sh
{
/**
* Tell JSHint about global variables.
*/
"predef": [
// https://github.com/pivotal/jasmine
"after",
"afterEach",
@adityasaxena
adityasaxena / reverseList.js
Created April 26, 2014 04:53
Reverse a Singly Linked List
function reverseList(list, newlist){
var newArray = newlist || [];
if(!Array.isArray(list)){
console.log('Not an array. Go Die!');
return;
}
if(list.length !== 2){
console.log('Invalid Array. Go Die!');
return;