Skip to content

Instantly share code, notes, and snippets.

View kpeatt's full-sized avatar

Kyle Peatt kpeatt

View GitHub Profile
@kpeatt
kpeatt / gist:5154680
Last active November 7, 2019 23:29 — forked from tvandervossen/gist:1231476
Viewport sizes for iPad, iPhone 4 and under, and iPhone 5 and up.
iPad (Actual pixels in brackets)
1024 × 690 (2048 x 1380) In landscape on iOS 4.3
1024 × 672 (2048 x 1344) In landscape on iOS 5
768 × 946 (1536 x 1892) In portrait on iOS 4.3
768 × 928 (1536 x 1856) In portrait on iOS 5
1024 × 660 (2048 x 1320) Always showing bookmarks bar in landscape on iOS 4.3
1024 × 644 (2048 x 1288) Always showing bookmarks bar in landscape on iOS 5
768 × 916 (1536 x 1832) Always showing bookmarks bar in portrait on iOS 4.3
@kpeatt
kpeatt / digitaldice
Created January 14, 2014 05:26
Digital Dice Roller for Arduino
const int ledPins[] = {13,12,11,10,9,8};
const int button1Pin = 3;
const int buzPin = 7;
int time;
int index;
int loopCount = 0;
int delayTime;
unsigned long startTime = millis();
unsigned long endTime = startTime;
@kpeatt
kpeatt / index.html
Created July 5, 2014 23:04
velocity blurbs
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" data-placeholder-focus="false">
<head>
<meta http-equiv="Content-Language" content="en" charset="utf-8"/>
<title>Canadian MLS&reg; Listings, Condos &amp; Homes for Sale &#8212; Zolo.ca</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<meta name="HandheldFriendly" content="True"/>
<meta name="MobileOptimized" content="320"/>
<meta name="robots" content="NOODP, NOYDIR">