Skip to content

Instantly share code, notes, and snippets.


Tyler Childs tylerchilds

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

Tyler Childs
Monday, December 17, 2007


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 / validate.js
Created Aug 5, 2016
Simple javascript validation library.
View validate.js
// 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 / jquery.card-detective.js
Created May 16, 2016
Credit card detection jquery plugin. Saving from permanent deletion.
View jquery.card-detective.js
* Card Detective jQuery Plugin
* Author : Tyler Childs
* Email :
* Purpose : Automatically detect a credit card value based on user input
* Usage :
tylerchilds /
Created Apr 28, 2016
Basic setup to go from zero to ruby on rails
/usr/bin/ruby -e "$(curl -fsSL"
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 /
Last active Dec 18, 2018
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

  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

View gist:94ac0d77fd48ff45e40a
# 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 / force-mobile-on-desktop
Created Apr 15, 2014
Sass (scss) retain mobile styles on desktop in a mobile-first approach
View force-mobile-on-desktop
overflow: hidden;
&.desktop .btn{
width: 49%;
margin: 5px 0;
float: left;