Skip to content

Instantly share code, notes, and snippets.

View tylerchilds's full-sized avatar

Tyler Childs tylerchilds

View GitHub Profile
@tylerchilds
tylerchilds / createScrollManager.js
Created June 4, 2019 02:02
Use requestAnimationFrame to handle scrolling smoothly
const createScrollManager = function() {
let callbacks = [];
let scrollPosition = -1;
let animatedKilled = false;
const animate = () => {
requestAnimationFrame(onScroll);
}
function onScroll(){
@tylerchilds
tylerchilds / untitled.md
Last active January 9, 2019 02:39
I'm guessing this was my final paper in English 101.

Tyler Childs
Monday, December 17, 2007

[untitled]

Every living creature has a reason for what it does in life. People and animals alike have instincts that they use for survival. Many people make complex decisions that affect their entire lives. Career choices, college and marriage are all common dilemmas that people face. My name is Tyler Childs and the one I’m suffering through right now is college. I’m going to college for three reasons: Satisfy my parents, learn about things I like, and in the long run, make more money.

My parents are both big reasons for why I go to college. Unlike most kids, who go to college because their parents make them, I go to college to accomplish what my parents have not. Both of my parents had to sacrifice college for me because I came, and for this I feel I owe it to them. My father had already stopped going before I came; but growing up, my school work was always important to him. My mother was in college when she got pregnant with me and then she had to stop going

@tylerchilds
tylerchilds / validate.js
Created August 5, 2016 23:03
Simple javascript validation library.
// author: { github: tylerchilds }
// date: 8/5/2016
// license: NO LICENSE
//
// Simple validation for javascript.
//
// usage:
// validate(value, rule);
//
// The rule will be used as a key to get an array of matchers
@tylerchilds
tylerchilds / jquery.card-detective.js
Created May 16, 2016 22:03
Credit card detection jquery plugin. Saving from permanent deletion.
/**
* Card Detective jQuery Plugin
*
* Author : Tyler Childs
* Email : tylerwchilds@gmail.com
*
* Purpose : Automatically detect a credit card value based on user input
*
* Usage :
*
@tylerchilds
tylerchilds / dev_setup.sh
Created April 28, 2016 16:07
Basic setup to go from zero to ruby on rails
#!/bin/bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git rbenv
rbenv install 2.2.4 && rbenv global 2.2.4
sudo gem install bundler
# after cloning rails application run these (without dollar sign)
#
# $ bundle
@tylerchilds
tylerchilds / piplay_raspberry_pi_3_setup.md
Last active December 18, 2018 12:29
PiPlay Raspberry Pi 3 Setup

PiPlay Raspberry Pi 3 Setup

Let me first preface this guide with the fact that I had zero experience with raspberry pi before tonight. I'm comfortable in the command line and I've played with linux as an enthusiastic dabbler.

If you follow this guide, you should be able to go from fresh raspberry pi to running roms on piplay. Also, only use roms that you've legally obtained. I used Robot Bowl available for free, for non-commercial use at mamedev.org.

  1. Install raspbian to your sd card using a different computer than your pi

  2. plug in the pi your username/password will be pi/raspberry

@tylerchilds
tylerchilds / gist:94ac0d77fd48ff45e40a
Last active August 29, 2015 14:07
Restart Vagrant
# I use this frequently to stop my vm, restart virtual box, boot up my vm, and ssh into it
vagrant halt && sudo /Library/StartupItems/VirtualBox/VirtualBox restart && vagrant up && vagrant ssh
@tylerchilds
tylerchilds / force-mobile-on-desktop
Created April 15, 2014 23:44
Sass (scss) retain mobile styles on desktop in a mobile-first approach
.btn-container{
overflow: hidden;
.btn,
&.desktop .btn{
width: 49%;
margin: 5px 0;
float: left;
&:first-child{