Skip to content

Instantly share code, notes, and snippets.

View tjr05d's full-sized avatar

Tim Reen tjr05d

View GitHub Profile
@tjr05d
tjr05d / index.html
Last active August 18, 2018 21:08
Guac-a-mole Game for Wyncode One Day Coding Event
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Guac-A-Mole</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
@tjr05d
tjr05d / html5-boilerplate.html
Last active February 12, 2018 16:34
HTML5 Boilerplate
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Newsletter</title>
<link type="text/css" rel="stylesheet" href="css/normalize.css">
<link type="text/css" rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
</head>
# create a 2d array
# with a hash at each position
# that has the following keys:
# - name
# - age
# - sex
# then create a Sinatra route that looks
# for the x & y query string params
# then uses them to return information about the student
# in that seat
@tjr05d
tjr05d / acr_paths.rb
Last active April 7, 2016 14:26
Ancient City Ruby Challenge
blocks = 10
paths = 0
blocks.times do | n |
paths += 2**(blocks - n)
end
puts "There are #{paths} distinct paths"
#There are 2046 distinct paths