Skip to content

Instantly share code, notes, and snippets.

View jryio's full-sized avatar
☣️
Test your code

Jacob (JRY) jryio

☣️
Test your code
  • Colorado / New York
  • 21:38 (UTC -06:00)
View GitHub Profile
/*!
* 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.
*

Keybase proof

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:

@jryio
jryio / The Technical Interview Cheat Sheet.md
Last active January 24, 2020 18:52 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

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.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
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);
@jryio
jryio / happy_git_on_osx.md
Last active August 31, 2015 16:45 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

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(' ');
@jryio
jryio / remote-repo.sh
Last active November 10, 2015 19:01 — forked from robwierzbowski/gitcreate.sh
Create and push to a new github repo from the command line using the Github API. thebearjew modifications
#!/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
@jryio
jryio / new-tab.js
Created December 5, 2015 09:20
Using JavaScript to open links (not within the host site) in a new tab
// 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) {
@jryio
jryio / assembly_formatter.sh
Last active December 8, 2015 07:28
Formatting assembly comments using Bash
#!/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