Skip to content

Instantly share code, notes, and snippets.

View cpjobling's full-sized avatar

Chris P. Jobling cpjobling

View GitHub Profile
@cpjobling
cpjobling / rails3setup.sh
Created April 1, 2011 15:18
Setting up for Rails 3
# Set up Ruby and Gemset using RVM
rvm get latest
rvm install 1.8.7
rvm install 1.9.2-head
rvm --create 1.8.7@rails2tutorial
rvm --create use 1.9.2-head@rails3tutorial
rvm --default use 1.9.2-head@rails3tutorial
gem update --system
# Install rails
@cpjobling
cpjobling / .gitignore-rails
Created April 1, 2011 15:08
A .gitignore for Rails development on Mac OSX (via Ruby on Rails Tutorial)
.bundle
db/*.sqlite3
log/*.log
*.log
tmp/**/*
tmp/*
doc/api
doc/app
*.swp
*~
@cpjobling
cpjobling / Brew fails to build lua
Created March 25, 2011 17:23
As part of install of gnuplot (required by octave) dependency lua fails to build because -lreadline is missing. On checking, readline includes and is installed as a keg
me@mymac:/usr/local [git:master]
➔ brew install lua
==> Downloading http://www.lua.org/ftp/lua-5.1.4.tar.gz
File already downloaded and cached to /Users/eechris/Library/Caches/Homebrew
######################################################################## 100.0%
patching file lcode.c
patching file ldblib.c
patching file liolib.c
patching file llex.c
patching file loadlib.c
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>HTML 5 complete</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
article, aside, dialog, figure, footer, header,
@cpjobling
cpjobling / blog.html
Created March 12, 2010 15:03
HTML for an example blog-post. Used in coursework for EG-146 Communication for the Internet.
<div id="post-id" class="entry">
<h1>Entry Title</h2>
<p>The blog entry.</p>
<p> ... </p>
<div class="byline">
<em>Posted by</em>:
<span class="posted-by">Author</span> date
</div>
</div>
@cpjobling
cpjobling / xhtml11-template.html
Created March 12, 2010 14:47
A template for a valid XHTML 1.1 English language web page coded in the UTF-8 character encoding.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>An XHTML 1.1 standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />