Skip to content

Instantly share code, notes, and snippets.

./enemy.js:Game.Entity.Enemy = Game.Entity.extend({
./enemy.js: this.x += Game.unit;
./enemy.js: this.x -= Game.unit;
./enemy.js:Game.Entity.Enemy.Monster = Game.Entity.Enemy.extend({
./entity.js:Game.Entity = Class.extend({
./entity.js: init: function( x, y ) {
./entity.js: tempCanvas, tempContext,
./entity.js: if ( x !== null && y !== null ) {
./entity.js: this.x = x;
./entity.js: tempContext = tempCanvas.getContext( '2d' );
@tybenz
tybenz / urlshort.sh
Created February 7, 2013 23:02
Bash URL Shortener
#!/bin/bash
echo "Generating URL..."
FULL_PATH="/Users/tbenzige/Projects/aws"
#Count is kept based on a list.txt file
#list.txt is a plain text file meant to show relationships between URLs
#Instead of a running count, we just count the lines in list.txt
INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)`
NUM="$INITIAL/4"
# Description:
# Listens for "hangout" keyword and sends Google Hangout url. Saves a couple minutes in our office.
#
# Configuration:
# HUBOT_HANGOUT_URL
#
# Commands:
# hubot hangout - sends hangout url
#
# Notes:
WebPro.Widget.ContentSlideShow.swipePlugin = {
initialize: function( slideshow, options ) {
this.swipeTracker = new WebPro.SwipeTracker( slideshow.$element, {
angleThreshold: 20,
swipeEvents: {
'wp-swipe-ss-prev': {
xThreshold: 60
},
'wp-swipe-ss-next': {
config.assets.debug = true
$.ajax('/annotations', {type:'post', contentType: 'application/json', dataType:'json', data: JSON.stringify({"annotations":[{"data_type":"tag","x":420,"y":157,"angle":-6,"text_data":"","user_id":1}]}) });
@tybenz
tybenz / index.html
Created August 13, 2012 18:43
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->
@tybenz
tybenz / index.html
Created August 12, 2012 18:13
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->
color: #b94a48;
}
.alert-info {
background-color: #d9edf7;
border-color: #bce8f1;
color: #3a87ad;
}
.alert-block {
padding-top
function attachReviewerListBehavior()
{
var $links = $( '#reviewer-list a' ),
$panels = $( '#reviewer-list .feedback-panel' );
if ( $links.length === 0 ) {
return;
}
$links.click( function() {