Skip to content

Instantly share code, notes, and snippets.

Front End 101
* Totally new to HTML and CSS
* Perhaps has seen it before, but not written much (if any)
* Not sure what tags, attributes, or selectors are
* <img>, <a>, and <p> are exciting and new
Front End 102
* Knows the basic idea behind HTML and has possibly written some
* New to CSS
* Perhaps has worked with a WYSIWIG editor but hasn't coded an HTML document from scratch
* Anyone can have a workshop. The materials are open.
FAUN
* Why not use oAuth
* Dates / times on the session RSVP section on the Volunteer page is confusing. Better text plz.
* Headers on RSVP form look terrible
* When I signed up it took me to the account page -- what do I do next?
* Connect to Meetup should redirect back to the event index instead of to your account page
* Add some kind of flash message for "You have successfully connected your account to Meetup!"
LILLIE
* Form submit buttons need any style whatsoever
THINGS FOR LATER
* How do reg ex match groups work? What's with the non-interpolation interpolation? Why does the match group need to be in a string?
A la:
def hide_all_ssns(string)
string.gsub(/(\d{3})-(\d{2})-(\d{4})/, 'XXX-XX-\3' )
end
# How to solve a sudoku puzzle
I. Find an empty cell
* Starting at 0,0, scan the board looking for 0
* Scan is some kind of nested loop! (Outer loop looking on x axis, inner -> y axis)
* If found
* Coordinates of first found empty cell gets stored (probably in an instance variable)
* Move on II
* If not found
def factorial_recursive(n)
return 1 if n == 1
n * factorial_recursive(n-1)
end
begin
print "list> "
@input = gets.chomp
puts @input
if @input =~ /^add/
@input.sub!(/add /, "")
Task.add(@input)
elsif @input == "list"
Task.list.each {|task| p task }
elsif @input =~ /^delete/
@lilliealbert
lilliealbert / index.html
Last active December 18, 2015 10:49 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>

ActionController

What is it?

  • It's a class --- and requests to the controller are just instances of the class
  • Controllers are responsible for doing one of two things
  • rendering something or redirecting to another URL
  • Sinatra v. Rails
  • The bulk of what you'd put in sinatra routes, are written in methods within the controller

Default Methods

@lilliealbert
lilliealbert / lillie_chilen_resume.md
Last active December 19, 2015 19:19
here's a markdown version of my resume. what would make it better?! xoxo, L.