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
| <!-- Button trigger modal --> | |
| <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> | |
| Launch demo modal | |
| </button> | |
| <!-- Modal --> | |
| <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> |
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 lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap 101 Template</title> | |
| <!-- Bootstrap --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
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
| <form class="form-horizontal" role="form"> | |
| <div class="form-group"> | |
| <label for="inputEmail3" class="col-sm-2 control-label">Email</label> | |
| <div class="col-sm-10"> | |
| <input type="email" class="form-control" id="inputEmail3" placeholder="Email"> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <label for="inputPassword3" class="col-sm-2 control-label">Password</label> | |
| <div class="col-sm-10"> |
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
| <table class="table table-striped"> | |
| <thead> | |
| <tr> | |
| <th>#</th> | |
| <th>First Name</th> | |
| <th>Last Name</th> | |
| <th>Username</th> | |
| </tr> | |
| </thead> | |
| <tbody> |
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
| class AddStudentAction(webapp2.RequestHandler): | |
| def post(self): | |
| user = users.get_current_user() | |
| rose_username = self.request.get('rose_username') | |
| new_student = Student(parent=utils.get_parent_key(user), | |
| id=rose_username, | |
| first_name=self.request.get('first_name'), | |
| last_name=self.request.get('last_name'), | |
| rose_username=rose_username, | |
| team=self.request.get('team')) |
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
| class InsertAssignmentAction(webapp2.RequestHandler): | |
| def post(self): | |
| user = users.get_current_user() | |
| urlsafe_entity_key = self.request.get('assignment_entity_key') | |
| if len(urlsafe_entity_key) > 0: | |
| # Edit | |
| assignment_key = ndb.Key(urlsafe=urlsafe_entity_key) | |
| assignment = assignment_key.get() | |
| else: | |
| # Add |
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
| class AddSingleGradeEntryAction(webapp2.RequestHandler): | |
| def post(self): | |
| assignment_key = ndb.Key(urlsafe=self.request.get('assignment_key')) | |
| student_key = ndb.Key(urlsafe=self.request.get('student_key')) | |
| student = student_key.get() | |
| score = int(self.request.get('score')) | |
| new_grade_entry = GradeEntry(parent=assignment_key, | |
| id=student.rose_username, | |
| assignment_key=assignment_key, | |
| student_key=student_key, |
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
| from google.appengine.ext import ndb | |
| class Player(ndb.Model): | |
| """ Information for a player. """ | |
| display_name = ndb.StringProperty() | |
| def get_name(self): | |
| """Returns the best name available for a Player.""" | |
| if self.display_name: |
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
| <body> | |
| My favorite "Google look" gmail signature file.<br> | |
| From Gmail: Settings -> General (first tab) -> Signature, then copy/paste from Chrome's display (without the dashes)<br> | |
| <br>*** Some email body.***<br><br> | |
| -- | |
| <table cellspacing="0"> | |
| <tbody> | |
| <tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"> | |
| <td style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px"> | |
| Dr. Dave Fisher |