Skip to content

Instantly share code, notes, and snippets.

View karlstolley's full-sized avatar

Karl Stolley karlstolley

View GitHub Profile
@karlstolley
karlstolley / index.htm
Created July 16, 2011 18:33
NIU Website
<!DOCTYPE html>
<html lang="en">
<head>
<title>Northern Illinois University</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css">
</head>
<body>
<h1><a href="http://www.niu.edu" rel="home">
Northern Illinois University</a></h1>
@karlstolley
karlstolley / rough-calendar.md
Created August 5, 2011 16:59
Rough Calendar for COM530: Fall 2011

8/23 - Welcome & Introductions; Diving In

In Class: Basic setup; intro to editor, command line, Git, Firefox + plugins
Reading: Stolley, ALA stuff
To Do: Set up editor, Git, Firefox + plugins on own computer

8/30 - XHTML Strict & Basic CSS

In Class: XHTML Strict & CSS walk-thrus with Git; GitHub accounts
Reading: Swicegood, ALA on Git (sm. article)
To Do: Page construction, Git use - pushing to GitHub

@karlstolley
karlstolley / for-adam.htm
Created September 10, 2011 23:35
Example for Adam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bullets, Centered Images for Adam</title>
<link rel="stylesheet" type="text/css" media="all" href="http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css" />
@karlstolley
karlstolley / .zshrc
Created April 16, 2012 16:09
My .zshrc file in Gewgaws Lab
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gallois"
# Set to this to use case-sensitive completion
@karlstolley
karlstolley / .zshrc
Created April 24, 2012 20:09
Campus Mac .zshrc
# https://github.com/robbyrussell/oh-my-zsh
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="gallois"
@karlstolley
karlstolley / stolley.md
Created April 25, 2012 17:33
My bit for the C&W Town Hall III, Program or Be Programmed
/*
  I generally don’t write out conference presentations like this, but because
  there’s a respondent for this town hall, I’ve been asked to. So, I’m going
  to compose the thing publicly, although my actual talk will be based on the
  points in the headings, not the verbatim text here.
*/

Source Literacy: A Vision of Craft

Karl Stolley, Illinois Institute of Technology

@karlstolley
karlstolley / setup.md
Created April 26, 2012 01:51
Computer Prep Instructions for End-to-End Agile Web Application Development from Basically Nothing

The workshop will require a number of technologies, which time will not permit us to set up on site. So, find your operating system below (Windows or Mac; if you're on Linux, let me know), and follow the steps to get your computer set up ahead of time. If you have any problems, email karl.stolley@gmail.com

At the request of some participants, I've also provided links to some reading material at the very bottom of this page. Look through that stuff if you have the time or interest.

Windows

First, you'll want to have a good editor on hand for the workshop. You can't do much better than Notepad++; just download and unzip this file: http://download.tuxfamily.org/notepadplus/6.1.2/npp.6.1.2.bin.zip Unzip the file; there will be a folder called unicode; just copy that folder to your desktop (you might want to rename it Notepad++). Done!

Next, you'll need to install Ruby on Rails. The RailsInstaller is the best way to go for Windows: http://railsinstaller.org/

@karlstolley
karlstolley / reading.md
Created June 27, 2012 17:12
Summer Reading COM531

Originally sent as an email to registered students on 2012/06/27

Dear All,

I hope you're enjoying the summer months.

I have a few books that I hope you will start reading in preparation for the Web Application Development class this fall. I've also included below the entire reading list for the course if you're extra motivated or just can't wait to spend money on books.

The summer reading titles will give you two learn-to-program books, one done in Ruby and the other in JavaScript. Focus on the concepts & the vocab. We'll use both languages, with a twist, in Web App Dev: our primary framework will be Rails, and we'll be doing some neato UI/AJAX things with JavaScript (actually CoffeeScript). And then if you want to just see something awesome that your CSS background will prepare you for, start working with Sassy CSS/SCSS/"Syntactically Awesome Style Sheets". You can even redo your existing website's CSS as SCSS, compile it, and be awesome yourself.

@karlstolley
karlstolley / email.md
Created October 2, 2012 16:05
Teaching Rails via commits

This is what I emailed my students for my Web Application Development course this morning...

Hi All,

I wanted to share some commits with you that illustrate a few common Rails concerns that have been cropping up from a number of you. This is based on the app we started in class, and can be found in the myapp branch of the 531 repo, https://github.com/karlstolley/531/tree/myapp

Seed Data

Two examples of this. The first seeds the Page model with a Welcome and About page. Because Page is a standalone model (without relationships to any other model), the seeding is pretty straightforward: https://github.com/karlstolley/531/commit/aebb27da948148e3f5698a265c1562da37e5b713

@karlstolley
karlstolley / rgba.scss
Created October 19, 2012 03:04
RGB/RGBa in Sass
// Declare the color as RGB; SASS will treat this as hex
$green: rgb(27,224,63);
// Declare an alpha
$alpha: .5;
// Declare another color variable as a color with an alpha
$greenAlpha: rgba($green, $alpha);
body {
/* As RGB (which SASS actually ouputs as HEX) */
background: $green;