- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Anyone can have a workshop. The materials are open. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def factorial_recursive(n) | |
return 1 if n == 1 | |
n * factorial_recursive(n-1) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
- www.lilliechilen.com
- www.github.com/lilliealbert
- (email address)
- (phone number)