Skip to content

Instantly share code, notes, and snippets.

View troyth's full-sized avatar

Troy Therrien troyth

View GitHub Profile
@troyth
troyth / index.html
Last active December 12, 2015 02:38 — forked from zackseuberling/index.html
<!doctype html>
<html>
<head>
<title>Web as Site</title>
</head>
<body>
<!-- your content -->
<h1>Headers</h1>
<h2>Range</h2>
<h3>From</h3>
<h4>Big</h4>
<h5>To</h5>
<h6>Small</h6>
<hr />
<br />
@troyth
troyth / JSONP Request to Twitter API Buffer
Created February 28, 2013 19:43
JSONP Request to Twitter API Buffer
<!DOCTYPE html>
<html>
<head>
<title>AJAX Test for Group 2</title>
<style>
#wrapper{
padding:100px;
}
.container{
@troyth
troyth / bubble handling demo
Created March 1, 2013 01:16
stubs for working with bubbles
var bubbles = [];
bubbles[172] = {
positionx: 150,
positiony: 300,
color: "#ff00ff",
side: "left",
text: "Amato Opera...",
icon: "images/icons/icon1.png"
};
@troyth
troyth / gist:5105256
Last active December 14, 2015 15:08 — forked from ebberly/gist:5105240
added FACE_COUNT, which is the size of the bldgList array, and CALLBACK_COUNTER. CALLBACK_COUNTER initializes to 0 and is incremented every time an $.ajax() call returns successfully. At the bottom of the getTweetsAll() function, I added a setInterval, which will loop every 200ms looking to see if CALLBACK_COUNTER has incremented its way up to F…
var timeActivity = 864000;
var tweetObj = {};
tweetObj.test = "ReturnTestProperty";
var bldgList = new Array(
west = new Array( '273bowery', '269bowery', '267bowery', '265bowery', '263bowery', '261bowery', '259bowery', '257bowery', '255bowery', '2stanton', '245bowery', '243bowery', '241bowery', '239bowery', '235bowery', '231bowery', '229bowery', '227bowery', '225bowery', '223bowery', '221bowery', '219bowery', '217bowery', '215bowery', '213bowery', '209bowery', '207bowery', '199bowery', '197bowery', '195bowery', '193bowery', '191bowery', '189bowery', '187bowery', '185bowery', '183bowery'),
@troyth
troyth / HTML5 Super-simple Embedded Boilerplate
Last active December 21, 2015 07:28
HTML5 web page template with embedded css and javascript
<!doctype html>
<html>
<head>
<title>Page Title</title>
<style>
<!-- add CSS styling here -->
</style>
</head>
@troyth
troyth / Example CSS
Created October 31, 2013 03:13
Example CSS file for Site to Site course.
h1 {
color:red;
}
@troyth
troyth / tags.html
Created October 31, 2013 03:19 — forked from griffiths/tags.html
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<p>This is a paragraph</p>
To break<br />lines<br />in a<br />paragraph,<br />use the br element.
p{
font-family: "Times New Roman", Times, serif;
color: red;
}
p{
font-style: italic;
}
p{
body{
/* text */
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
font-style: none;
font-weight: normal;
/* canvas */
background-color: #aaa;
background-image: none;