Skip to content

Instantly share code, notes, and snippets.

View saylerb's full-sized avatar

Brian Sayler saylerb

  • Denver, CO
View GitHub Profile

Three things I can do to make my apps more assessible

  • Tabbing around-Take some extra time to make it easier to navigate the site by checking to see if I can tab around

  • When selecting a color palette for a new website, consider using colors that contrast easily

  • Make sure not to remove the default focus

  • POWER YOGA!!!!

  1. What was interesting?
  • Interesting is that you can create javscript objects on the fly, without creating classes. Now that we've worked with JSON, I think I understand that generating JSON is creating an object without defining the classes.
  • Interesting the Scheme influenced Javascript. I've heard that Scheme is a good first functional langauge to learn, so I'm excited to use some function concepts in my Javascript programming going forward.
  1. Which sections did you totally skim?

I didn't skim anything...this reading was pretty short.

  1. Do you think the reading was valuable?

From Bocoup's jQuery Fundamentals

  1. What is something you learned that was particularly surprising/interesting?
  • This is tricky: $() function always returns a jQuery object, and an object is always truthy, so sometimes it's hard to know if you've actually selected what you wanted to select.

  • Jquery has methods that can generate HTML with $()

       $( '<p>', {

html: 'Hello!',

@saylerb
saylerb / The Technical Interview Cheat Sheet.md
Created July 28, 2016 16:59 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

Why use AJAX?

  • AJAX = Asynchronous JavaScript + XML (although JSON is used more these days)
  • No refresh
  • Less bandwidth
  • Split the work between the client and server
    • Offload some of the work to the user's computer

Asynchronous

Cubby Stuffers

Pitch

A subscription-based snack service for students who are not always on top of their grocery shopping game.

Problem

There is no access to food at Turing unless you bring it. This can be a daily struggle that can also cost you a lot of money in the long run. Yes you can save on costs by buying your own snacks at the store and bringing them everyday. If you are that productive of a human, this service may not be for you. Get your cubby stuffed with delicious snacks for the week every week on a subscription-based snack service.

Main features

  • Asset concatenation

    • append files together, Merge multiple files into a single file.
    • Easier for a machine to deal with loading a single file, rather than mulitple
    • Reduce the number of requests that a browser makes to render a web page.
    • Sprockets concatenates all JavaScript files into one master .js file and all CSS files into one master .css file.
  • Asset minification

    • Minifying files helps make the files more lightweight by removing whitespace.

Rush Hour the Hard Way

Payload Requests Business Logic

  1. Write the ActiveRecord and SQL queries for average response time for all payload requests.

    PayloadRequest.average(:responded_in)

XML - pain to write and parse, but human and machine readable JSON - faster, human and machine readable, maps well to data structures in other langauges Writing JSON - double quotes, wrap it in single ruby JSON & RUBY - JSON.parse(json_string) JSON.generate(some_hash) some_hash.to_json JSON & jQuery = AJAX stuff:

/tweets.json is an endpoint for your application.

Intermediate SQL Homework

Summary Questions

  1. What is an INNER JOIN?
An inner join will combine the records that exist two tables