Project Name
TODO: Write a project description
Installation
TODO: Describe the installation process
TODO: Write a project description
TODO: Describe the installation process
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>React Quick Prototyping</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.min.js"></script> |
// Create an instance of our cache and set some keys. Notice that the [new] operator | |
// is optional since the SimpleCache (and revealing module pattern) doesn't use | |
// prototypical inheritance. And, we can use method-chaining to set the cache keys. | |
var cache = SimpleCache() | |
.set( "foo", "Bar" ) | |
.set( "hello", "world" ) | |
.set( "beep", "boop" ) | |
; | |
console.log( cache.has( "beep" ) ); |
describe( 'Top level suite', function() { | |
describe( 'Second level test suite', function() { | |
before( function() { | |
// executes once, before all tests | |
} ); | |
beforeEach( function() { | |
// executes before each test of the suite |
if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { | |
// bootstrap the javascript application | |
} |
dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile swap swap defaults 0 0" > /etc/fstab |
[alias] | |
# View abbreviated SHA, description, and history graph of the latest 20 commits | |
l = log --pretty=oneline -n 50 --graph --abbrev-commit | |
# View the current working tree status using the short format | |
s = status -s | |
# Show the diff between the latest commit and the current state | |
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" | |
# Commit all changes | |
cm = !git add -A && git commit -m | |
# Switch to a branch, creating it if necessary |
document.getElementById( 'menu' ).addEventListener( 'click', function( event ) { | |
if( event.target && event.target.nodeName === 'LI' ) { | |
// Event triggered | |
} | |
}); |
sudo locale-gen en_GB.UTF-8 | |
sudo addgroup vagrant www-data | |
# Set timezone (UTC) | |
echo "Etc/UTC" | sudo tee /etc/timezone && sudo dpkg-reconfigure --frontend noninteractive tzdata | |
# Update system | |
sudo apt-get update | |
sudo apt-get -y dist-upgrade |