- Challenge 1: User Interfaces and Responsive Design - https://github.com/jcuffe/Sprint-Challenge--UI-Responsive
- Challenge 3: JavaScript Fundamentals - https://github.com/jcuffe/Sprint-Challenge--JavaScript
- Challenge 10: MongoDB - https://github.com/jcuffe/Sprint-Challenge-Mongo
- Challenge 15: Computer Architecture - https://github.com/jcuffe/Sprint-Challenge--Computer-Architecture
- Challenge 17: Processes, System Calls, Scheduling - https://github.com/jcuffe/Sprint-Challenge--Intro-C-Processes
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
| const typeDefs = ` | |
| type Query { | |
| hello: String | |
| } | |
| `; | |
| const resolvers = { | |
| Query: { | |
| hello: () => "Hello, world!" | |
| } |
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
| --- a/data_structures/ex_1/binary_search_tree.py | |
| +++ b/data_structures/ex_1/binary_search_tree.py | |
| @@ -10,17 +10,17 @@ class BinarySearchTree: | |
| queue.append(self) | |
| while len(queue): | |
| current_node = queue.pop(0) | |
| - if current_node.right: | |
| - queue.append(current_node.right) | |
| if current_node.left: | |
| queue.append(current_node.left) |
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
| wdvfbpolCAg/8eKlVFQgszioHEdJCE2x 6C4GFdl4cMZr0PlngRYpS5K8EV6KbSMWRhFYsn5TioN8 |
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
| UTR1IwkdGr6D42Fb2FzWMBrKfpMOvssB OV+Bq0lUvBhy8vU/0Ix+jxtwzK4KMaI= |
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
| const jwt = require('jsonwebtoken') | |
| const passport = require('passport') | |
| const LocalStrategy = require('passport-local').Strategy | |
| const JwtStrategy = require('passport-jwt').Strategy | |
| const { ExtractJwt } = require('passport-jwt') | |
| const User = require('./user') | |
| const secret = 'squirrel' | |
| const makeToken = (user) => { |
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
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import { Observable } from 'rxjs' | |
| import 'rxjs/add/observable/combineLatest' | |
| import firebase from 'firebase' | |
| // Don't tell anyone my secrets | |
| firebase.initializeApp({ | |
| apiKey: "AIzaSyDMOIq693Xaj6Ieo10kJCo_uY30fY6lT-8", | |
| authDomain: "lambda-front-end-f3a17.firebaseapp.com", |
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
| var flags = ["attribute1", "attribute2", "attribute3"]; | |
| var flagString = MongoDB.get("currentRecord"); | |
| flags.forEach(function (flag) { | |
| if flagString.contains(flag) { | |
| getCheckBoxByName(flag).setChecked(true); | |
| } | |
| } | |
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
| Local POST to /rides | |
| {"level":"info","message":"Started POST /rides for 127.0.0.1","timestamp":"2012-11-07T19:57:41.584Z"} | |
| {"auth_token":"3zhjRGRaLrwE1WkYOZVvhSJ9eXvTPh3N2/3G/vKq5bgDpVq8svks40ZPelKcRfpZi+aB758V6x6YEhuKIwYnEEYm3Cj8A5McsqOct+HgpTRnX9d259NvuSjOc7SQ5jqd0yMsv9q6Hpsgz7eV2+hlWw==","content":{"id":"12345","passenger":{"id":"956c434c-e3d3-41c4-a7e7-27cdf1c4d326","name":"Grover"},"pickup_location":{"latitude":43.027622,"longitude":-108.383045,"address_1":"622 E Park Ave","city":"Riverton","state":"WY","postal_code":"82501","country":"USA"},"notes":"hello, world!"},"requirements":{"party_size":2},"level":"info","message":"Creating ride for user 956c434c-e3d3-41c4-a7e7-27cdf1c4d326","timestamp":"2012-11-07T19:57:41.584Z"} | |
| {"type":"ride","subtype":"information","id":7,"meta":{"fleets":[],"priority":null,"hail_protocol":null},"content":{"id":"1091178232201162869","notes":null,"status":"in_process","passenger":{"id":"956c434c-e3d3-41c4-a7e7-27cdf1c4d326","name":null,"phone":null,"email":null,"device_type": |
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
| define([ | |
| 'jquery', 'underscore', 'backbone', | |
| 'models/passenger/model' | |
| ], function ($, _, Backbone, Passenger) { | |
| Passengers = Backbone.Collection.extend({ | |
| model: Passenger | |
| }); | |
| return Passengers; | |
| }); |