Skip to content

Instantly share code, notes, and snippets.

View tamcgoey's full-sized avatar
🛍️
shipping something...

Thomas Edgesmith tamcgoey

🛍️
shipping something...
View GitHub Profile
@tamcgoey
tamcgoey / chef_solo_bootstrap.sh
Created May 20, 2012 01:25 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@tamcgoey
tamcgoey / chef_solo_bootstrap.sh
Created August 2, 2012 15:55 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@tamcgoey
tamcgoey / c5-define.php
Last active December 29, 2015 23:48
#concrete5 header define
defined('C5_EXECUTE') or die("Access Denied.");
@tamcgoey
tamcgoey / c5-theme-area.php
Last active December 29, 2015 23:48
#concrete5 #theme Area
<?php
$a = new Area('REPLACE_ME');
$a->display($c);
?>
@tamcgoey
tamcgoey / c5-theme-globalArea.php
Last active December 29, 2015 23:48
#concrete5 #theme Global Area
<?php
$a = new GlobalArea('REPLACE_ME');
$a->display();
?>
@tamcgoey
tamcgoey / c5-theme-getThemePath.php
Last active December 29, 2015 23:48
#concrete5 #theme Get Theme Path
<?php echo $this->getThemePath(); ?>
@tamcgoey
tamcgoey / c5-theme-getStyleSheet.php
Created December 2, 2013 04:00
#concrete5 #theme Get Style Sheet, used for editable styles
<?php echo $this->getStyleSheet('REPLACE_ME'); ?>
@tamcgoey
tamcgoey / gist:8392561
Created January 13, 2014 00:11
meta tags
<title>[BLOG TITLE] | Thomas McGoey-Smith</title>
<meta name="Description" content="Thomas McGoey-Smith is a Computer Science Student from Calgary, Alberta, Canada. If you enjoyed [BLOG TITLE] you should consider following Thomas on twitter @tamcgoey.">
<meta name="Keywords" content="Thomas McGoey-Smith, Computer Science Student, Calgary Alberta Canada, Programmer">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@tamcgoey">
<meta name="twitter:title" content="[Blog Title] | Thomas McGoey-Smith">
<meta name="twitter:description" content="Another post written by: Thomas McGoey-Smith">
<meta name="twitter:creator" content="@tamcgoey">
<meta name="twitter:image:src" content="http://d22k0q6ovzvusd.cloudfront.net/tamcgoey/headshot.png">
void tank_reset(Tank *tank)
{
if (tank->isFrontPage == TRUE)
{
tank->f_x = tank->x;
tank->f_y = tank->y;
}
else
{