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
HOOKSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
TIMESTAMP=$(date +"%Y%m%d%H%M") | |
COMMITID=$(git rev-parse HEAD) | |
PROJECT=$($test | awk -F/ '{print $(NF-1)}') # this doesn't work yet | |
imagesnap -q -w 1 ~/.gitshots/$TIMESTAMP-$COMMITID.jpg |
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 to get a list of files that will be committed by extension | |
# you can for example do "$(commit_files js css)" to get a list of js and css files that wil lbe commited | |
function commit_files() { | |
if [ $# -eq 0 ] ; then | |
echo $(git diff-index --name-only --diff-filter=ACM --cached HEAD --) | |
exit 0 | |
fi | |
extensions='' |
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 NotInFacebookFrame(){ | |
return top === self; | |
} |
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() { | |
if (!window.console) { | |
window.console = {}; | |
} | |
// union of Chrome, FF, IE, and Safari console methods | |
var m = [ | |
"log", "info", "warn", "error", "debug", "trace", "dir", "group", | |
"groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd", | |
"dirxml", "assert", "count", "markTimeline", "timeStamp", "clear" | |
]; |
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
<blinky>Look, it blinks!</blinky> |
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
<label for="name">Name</label> | |
<input type="text" name="name" id="name" value="" /> | |
<label for="email">Email</label> | |
<input type="email" name="email" id="email" value="" data-validation-rule="valid_email" /> |
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
<img id="image" src="{{ image }}" /> | |
<img src="//bubobox.static.s3.amazonaws.com/overlay_templates/paperhole.png" /> |
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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Video challenge</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,800,300' rel='stylesheet' type='text/css'> | |
<style> |
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
<script> | |
// Send cookie data to hacker | |
alert('Thanks for your cookies:' + document.cookie); | |
</script> |
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
include foo |