Skip to content

Instantly share code, notes, and snippets.

@llnimetz
llnimetz / gist:92fa31e53a80058282ca
Last active August 29, 2015 14:08
Coaching Calendar Sign-Up Description

The NYC Coaching Program has sign-up system that utilizes Google Calendar's appointment slots functionality. All coaches need to go into to bit.ly/nyccoaches to sign up for their coaching slots if they want to be paid.

The way it works is the following:

  • we decide the max number of floor & 1:1 coaching hours allowed (we can "afford") and how to allocate these hours across the week.
  • you go to bit.ly/nyccoaches to sign up for a coaching slots (appointment slots) in our new Coaching Calendar
  • we will watch how coaches signup and adjust the slots over time as we learn more or as our budget changes.

so for those who need hand-holding....

Step 1 => Go to bit.ly/nyccoaches. Try to do this as far in advance as possible to ensure you get the time slots you want. They're now strictly limited to ensure we don't go over budget.

@llnimetz
llnimetz / gist:a03b3b23d7d1bc09bc04
Last active August 29, 2015 14:06
NYC Coach Orientation Info

Welcome

  • welcome to the team!
  • we know you (coaches) know more than us (staff) about this program because you've already gone through it
  • we trust you to use your good judgement to make this program the best it can possibly be for our students

Coordination

  • use your mailing list to communicate with each other => coaches.nyc@devbootcamp.com. You should have already been added to it.
  • avoid the temptation to build (or use) some shiny new scheduling app because it'll break or flare out some day and then life will suck
@llnimetz
llnimetz / gist:2c420237d12a90797767
Last active August 29, 2015 14:06
NYC Coaching Program

Overview

The DBC coaches program was created to engage the most technically and/or culturally-aligned DBC graduates after graduation.

What makes a coach?

Must be former students of DBC including very recent graduates as well as those who have had some professional experience. Nominated by teachers, mentors, students, and other coaches into the program. Manage their own schedules and submit invoices for their time on a weekly basis. Must contribute at least 10 hours per month to stay in the program.

Parameters in Rails

Same as Sinatra

  • query string parameters
  • POST data

default_url_options

Whitelisting is a critical new concept to understand.

  • You need to explicitly set param keys as permissible. Strong parameters are permissible.
# Parameters in Rails
Same as Sinatra
- query string parameters
- POST data
![default_url_options](https://www.evernote.com/shard/s189/sh/2b047a4a-5f21-4833-97b1-eacc0a7f493c/5c2b9cabe9f0ff90e8b7c5d86c94ead3/deep/0/Screenshot%209/16/13%203:32%20PM.png)
Whitelisting is a critical new concept to understand.
- You need to explicitly set param keys as permissible. Strong parameters are permissible.

The Flash

The flash is a new, special part of the session that makes data available for the next request -- but is then cleared automatically.

This is useful for notifications ("Welcome, John", "You have successfully logged out") and error messages ("your email and password don't match").

Logging out is a good example:

  • assigning flash messages is the same as assigning a session key-value pair but the keys are :flash, :notice and :alert.
  • they can also be assigned as part of the redirection
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
@llnimetz
llnimetz / form-validator.js
Last active December 22, 2015 09:48 — forked from ksolo/form-validator.js
Form Validation
$(function(){
$("form").on("submit", function(e){
e.preventDefault();
$("li").remove();
var x = $("input[name='email']").val();
console.log(x);
if (x.match(/.+@.+\..{2,}/) === null)
// another way of checking for valid email addresses