Skip to content

Instantly share code, notes, and snippets.

Geoff Alday geoffalday

  • Franklin, TN
Block or report user

Report or block geoffalday

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
geoffalday / words.txt
Last active Aug 29, 2015
Words that should be used more often.
View words.txt
geoffalday / geoff.txt
Created Apr 29, 2014
A few ways my name has been pronounced.
View geoff.txt
View Preferences.sublime-settings
"trim_trailing_white_space_on_save": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"detect_indentation": false,
"use_tab_stops": true
geoffalday / gist:5105602
Last active Dec 14, 2015
Car Monitor + Raspberry Pi settings
View gist:5105602
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
geoffalday / gist:4731700
Last active Dec 12, 2015
Setting the color of button text to black in CSS vs. Objective-C.
View gist:4731700
.button { color: black; }
geoffalday / gist:4189584
Created Dec 2, 2012 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View gist:4189584

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
geoffalday / index.html
Created Nov 14, 2012
A CodePen by Geoff Alday. - All graphical elements created with CSS.
View index.html
<div class="box">
<div class="box-top"></div>
<div class="box-body">
<div class="heading">
<div class="content">
<p>The passion for play is probably as old, and will be as enduring, as the race of man. Some of us are too timid to risk a dollar, but the percentage of people in this feverish nation who would not enjoy winning one is very small. The passion culminates in the professional. He would rather play than eat. Winning is not his sole delight. Some one has remarked that there is but one pleasure in life greater than winning, that is, in making the hazard.</p>
geoffalday / nashville-weather-1981.r
Created Jun 21, 2012
Display a year's weather using R
View nashville-weather-1981.r
#Nashville Weather in 1981
weather1981 <- read.csv('wunder-data-1981.txt', sep=',', header=TRUE)
high_colors <- c()
for (i in 1:length(weather1981$tmax)) {
if (weather1981$tmax[i] > 80) {
high_colors <- c(high_colors, '#CC0000')
} else {
high_colors <- c(high_colors, '#9ACC78')
import urllib2
from bs4 import BeautifulSoup
# What year?
year = 2011
# Create/open a file called wunder.txt
f = open('wunder-data-' + str(year) + '.txt', 'w')
geoffalday / weather.r
Created Jun 15, 2012
Displays hottest days using R
View weather.r
# Nashville's hottest days in 2011
weather2011 <- read.csv('wunder-data-2011.txt', sep=',', header=TRUE)
fill_colors <- c()
for (i in 1:length(weather2011$tmax)) {
if (weather2011$tmax[i] > 80) {
fill_colors <- c(fill_colors, '#CC0000')
} else {
fill_colors <- c(fill_colors, '#CCCCCC')
You can’t perform that action at this time.