This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| /** | |
| * Tell JSHint about global variables. | |
| */ | |
| "predef": [ | |
| // https://github.com/pivotal/jasmine | |
| "after", | |
| "afterEach", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |