Skip to content

Instantly share code, notes, and snippets.

Tyler Childs tylerchilds

Block or report user

Report or block tylerchilds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tylerchilds
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 = () => {
requestAnimationFrame(onScroll);
}
function onScroll(){
@tylerchilds
tylerchilds / untitled.md
Last active Jan 9, 2019
I'm guessing this was my final paper in English 101.
View untitled.md

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 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
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 : tylerwchilds@gmail.com
*
* Purpose : Automatically detect a credit card value based on user input
*
* Usage :
*
@tylerchilds
tylerchilds / dev_setup.sh
Created Apr 28, 2016
Basic setup to go from zero to ruby on rails
View dev_setup.sh
#!/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 Dec 18, 2018
PiPlay Raspberry Pi 3 Setup
View piplay_raspberry_pi_3_setup.md

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

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
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
.btn-container{
overflow: hidden;
.btn,
&.desktop .btn{
width: 49%;
margin: 5px 0;
float: left;
&:first-child{
You can’t perform that action at this time.