Skip to content

Instantly share code, notes, and snippets.

@rickyc
rickyc / Dockerfile
Created February 26, 2018 15:01
Basic Docker Compose to spin up a Ruby on Rails server.
FROM ruby:2.4.2
RUN apt-get update -qq && apt-get install -y \
build-essential \
apt-transport-https \
apt-utils \
cmake \
libpq-dev
# for nokogiri
@rickyc
rickyc / Dockerfile
Last active February 26, 2018 20:22
Basic Docker Compose to spin up a Ruby on Rails / Webpacker server.
FROM ruby:2.4.2
RUN apt-get update -qq && apt-get install -y \
build-essential \
apt-transport-https \
apt-utils \
cmake \
libpq-dev
# for nokogiri
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFrPtqoBEAC6F4CexlzwAgwt8k29CJEu7bkHpbhQwivJVgW8Ml5Nh4HTbkjJ
Mf+RTqykQs9Pm5YstJiu4cVgN4P0krm1aYHD8cZeuydkC7rUBUgzTWR4v19UP7Cg
MTdg47FnWLQsPD5HEM18GBZaD9Se9o3a1egF/u1zbKkqq4IS9lJu10R1Nl6a5EGZ
Eg73Cqgbz15+5w8WfKB7WOMG763RD+OHtVT1+rOE8cFGyECxpZspt1uuF8b0K7uE
uG6XIuQ95v9gFIn9k6q5y0d4943TMDl8bPQhd3Q6nxLUXC9B6M9nvK/qHfe5j0rE
iHig5XfKRnd+dFqUk6bRYHe2N5bIW6xEIv6rppKnXUsjoswucjbx/BiaHUx++qOk
3ANuuMyKXRTzLlNW5Pd31W24x9E2Kn/wtaBU/oBuJUUbclzt/8XPCYjnDqVuKV/V
8X7Jn3FtoZYwM3kem8FsXCNGoxHTUnvvQ1VwITsQtlqRxD5DrNQRs+IduJf/O+wS

Telephone Game

The premise of this game is to take turns drawing / writing captions to unfold a story.

Instructions

  1. Assign the players an order by randomly picking or play rock paper scissors
  2. Have the first player draw something on a piece of paper. Make sure the other players don't see the drawing.
  3. You can show the other players some of the samples while they wait their turn.
  4. Once the first player is finished, pass it along to the second player and tell them to write a caption for the drawing.

Styling


Class Outline

  • Review tags (hr, h1, img, a, b), nesting,
  • Style is an 'attribute' of a tag, just like href or src.
  • Style syntax is nitpicky -- Spot the Error exercise.
  • Lab time: background; color; font-size; font-style; text-align;
  • Multiple style attributes
  • Image styles width, float
@rickyc
rickyc / codeed-spring-2013-lesson-5.markdown
Last active December 16, 2015 05:58
CodeEd - Girls Prep Spring 2013 - Lesson 5 - Indentations / Tables

Indentations

Agenda

Reminder the girls: Coding is about trial & error. Don't be afraid to mess up, because you can't.

  • Todo: Design your own website.
  • Review
  • Importance of Tag Orders / Indentation
  • Tables / Lists

lesson1: Turtling.

With NetLogo open and the Interface tab selected, try out the following in the Command Center:

This is how you make a turtle:

create-turtles 1

Now let's move the turtle.

// Sample Code From http://rossboucher.com/2008/08/19/iphone-touch-events-in-javascript/
// Modified the code to work with jQuery UI Slider for iPhone / iPad Mobile Safari
function touchHandler(event) {
var touches = event.changedTouches, first = touches[0], type = "";
switch(event.type) {
case "touchstart" : type = "mousedown"; break
case "touchmove" : type = "mousemove"; break;
case "touchend" : type = "mouseup"; break;