This file contains 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
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: "debug" | |
}); | |
var key = casper.cli.options['key']; | |
var url = 'http://www.google.com'; | |
casper.start(url); |
This file contains 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
var casper = require('casper').create(); | |
casper.start('http://en.wikipedia.org/', function(){ | |
// ... | |
}); | |
casper.then(function(){ |
This file contains 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
casper.test.begin('Test', numTests, function(test){ | |
casper.start('http://en.wikipedia.org/', function(){ | |
//... | |
}); | |
casper.then(function(){ | |
//... | |
}); |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Basic Object Behavior</title> | |
<script src='js/Box2dWeb-2.1.a.3.js'></script> | |
<style> canavs { background-color:black; } </style> | |
</head> | |
<body> |
This file contains 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
<div id="storyboard" class="carousel"> | |
<div class="carousel-inner "> | |
<div class="item active"> | |
<h1>Slide #1</h1> | |
</div> | |
<div class="item "> | |
<h1>Slide #2</h1> | |
</div> | |
</div> | |
<a class="left carousel-control" href="#storyboard" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap carousel</title> | |
<!-- Bootstrap --> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
This file contains 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
<form id="registerForm" role="form" class="form"> | |
<div class="form-group"><label>Username</label><input class="form-control" name="username" type="text" required></input class="form-control" ></div> | |
<div class="form-group"><label>E-mail</label><input class="form-control" name="email" type="email" required></input class="form-control" ></div> | |
<div class="form-group"><label>Password</label><input class="form-control" name="password" type="password" required></input class="form-control" ></div> | |
` <div class="form-group"><label>Password (verify)</label><input class="form-control" name="verifyPassword" type="password" required></input class="form-control" ></div> | |
</form> |
This file contains 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
jQuery(document).ready(function($){ | |
$('form#aForm').on('submit', function(e){ | |
e.preventDefault(); | |
$.post( | |
url: form.attr('action'); | |
data: form.serialize(), | |
success: function(data){ |
This file contains 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
#!/bin/sh | |
# Usage: bash < <(curl -s https://gist.github.com/raw/965142/install.sh) | |
if [ ! -d "/Developer/Applications/Xcode.app" ]; then | |
echo "Please install Xcode first. Exiting." | |
exit 1 | |
fi | |
# Have sudo ask us for our password before we kick everything off so we can walk away. | |
sudo echo "Here we go..." |
This file contains 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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Let Vundle manage Vundle | |
Bundle 'gmarik/vundle' | |
" My Bundles |
OlderNewer