I hereby claim:
- I am jryio on github.
- I am jacobyoung (https://keybase.io/jacobyoung) on keybase.
- I have a public key ASBiW1UyFNc-f02wArE83aX4iL9kbikffVQ7Rt0vGyRBywo
To claim this, I am signing this object:
/*! | |
* Casper is a navigation utility for PhantomJS. | |
* | |
* Documentation: http://casperjs.org/ | |
* Repository: http://github.com/n1k0/casperjs | |
* | |
* Copyright (c) 2011-2012 Nicolas Perriault | |
* | |
* Part of source code is Copyright Joyent, Inc. and other Node contributors. | |
* |
I hereby claim:
To claim this, I am signing this object:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
function SpaceThing(name, loc, speed, health) { | |
this.name = name; | |
this.loc = loc; | |
this.speed = speed; | |
this.health = health; | |
this.isAlive = true; | |
} | |
function DeathStar(name, loc, speed, health, energy, damage) { | |
SpaceThing.call(this, name, loc, speed, health); |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
var textBox = document.querySelector('.control input'); | |
var ship = document.querySelector('.ship'); | |
var button = document.querySelector('.control button'); | |
var commandEntered = function(event) { | |
event.preventDefault(); | |
var text = textBox.value; | |
textBox.value = ''; | |
var words = text.split(' '); |
#!/bin/bash | |
# https://gist.github.com/robwierzbowski/5430952/ | |
# Create and push to a new github repo from the command line. | |
# Grabs sensible defaults from the containing folder and `.gitconfig`. | |
# Refinements welcome. | |
# Gather constant vars | |
CURRENTDIR=${PWD##*/} | |
GITHUBUSER=$(git config github.user) |
#!/bin/sh | |
# | |
# | |
# This pre-push hook will automatically pull the _posts submodule. | |
# _posts submodule will be behind its master branch unless pulled | |
# in this repository. | |
echo "_posts submodule has been pulled" | |
exec git submodule foreach git pull origin master |
// Adds attribute "target=_blank" to links to all external sites | |
function handleExternalLinks () { | |
var host = location.host | |
var allLinks = document.querySelectorAll('a') | |
forEach(allLinks, function (elem, index) { | |
checkExternalLink(elem, host) | |
}) | |
} | |
function checkExternalLink (item, hostname) { |
#!/bin/bash | |
# | |
# Programmer: Jacob Young | |
# Filename: comments.sh | |
# Date: Mon Dec 7 2015 | |
# Class: COSMC-171 | |
# | |
# Assignment 1 | |
# This script will align comments in an assmebly language file | |
# Lines which start with a comment (;) will not be modified |