Skip to content

Instantly share code, notes, and snippets.

View ckaminer's full-sized avatar

Charles Kaminer ckaminer

  • New York, NY
View GitHub Profile
// database package
type DBInterface interface {
CreateItem(Item) (*Item, error)
}
type DB struct {
*sql.DB
}
func (db *DB) CreateItem(item Item) (*Item, error) {

Hey team,

After experimenting with different types of learn days over the last year and gathering feedback through lab and team retros, we (myself, Ryan, Dana, and Zach) have put together a plan for our organized learning in 2018. Last year, we ditched individual learn days in favor of super learn days in order to make them more of an "event" and practice skills that stretch beyond our technical arsenals. These were awesome...but they required a ton of work to put on that we found to be unsustainable for a lab of our size. We all talked at our last lab retro about the desire to work across teams (AE and ARS). The plan we put together should hopefully alleviate some planning while fulfilling goals towards technical and personal growth. The idea for 2018 is to have a 3-month rotation between individual learn days, super learn days, and a hackathon. Below are the dates and ideas behind all three. Hopefully we can follow through with this ongoing experiment and get a feel for what works and what doesn't.

INDEX.JS
=====================================
var scoreButton = document.getElementById('score-button');
var highScoreSpan = document.getElementById('high-score');
var nameSpan = document.getElementById('name');
var highScore = 0 || JSON.parse(localStorage.getItem("highscore"))[0];
var name = JSON.parse(localStorage.getItem("highscore"))[1];
debugger
addHighScoreToPage(highScore, name);

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.

###Aggregate Function Queries ######Total Revenue for All Items:

SELECT sum(revenue) FROM items;

######Average Revenue for All Items:

SELECT avg(revenue) FROM items;
@ckaminer
ckaminer / Asset pipeline
Last active June 8, 2016 15:44
asset pipeline review
What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
- Concatenating files means to take all files of the same type and mash them into one master file. This leaves the application with less data.
What does it mean to precompile files? What does this have to do with coffeescript and sass files?
- Precompiling files is the process of compiling code down into its native language. Coffeescript would get compiled down to javascript and sass would get compiled to css.
What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
- Minifying files is the process of removing whitespace, return lines, and long variable names (js) from a file. Minified files use less memory and are just as readable for the computer.
Start up the server for Catch 'em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text edi
@ckaminer
ckaminer / agile_manifesto_questions.md
Last active May 16, 2016 19:31
answer Jorge's agile manifesto questions

Read the Agile Manifesto

Read the Agile Principles

Create a Gist and answer the following questions:

How does the Agile model compare to the Waterfall model?
  • The waterfall model is a sequential process that doesn't account for much change. It is dependent on the assumption that the information in the beginning will not change.
  • The agile model is a iterative process that expects change. It starts on a small scale in which allows the creator to gather feedback and adjust acordingly.
Why do you think Agile is so popular in software development?
  • Software is constantly changing which is a key component of the agile model. Without using the agile model there would be a lot of starting from scratch going on.
@ckaminer
ckaminer / crud.md
Last active May 10, 2016 22:31 — forked from Carmer/crud.markdown
  1. Define CRUD.
  • Create, Read, Update, Delete
  1. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
  • a. GET '/tasks' See all tasks
  • b. GET '/tasks/:id' See a single task
  • c. GET 'tasks/new' See form to enter a new task
  • d. POST '/tasks' Submit data to create a new task
  • e. GET '/tasks/:id/edit' Pull up a form (for specific id) in order to edit
  • f. PUT '/tasks/:id' Submit data (for specified id) from edit
  • What do you know about modules already? If little, what would you guess modules are all about?
  • they are a collection of methods that can be required in other files similar to a class. If required, those methods become available to the class they are contained in.
  • Golf and basketball both use a ball. But if you're on a basketball court and ask for "the ball," no one is going to throw you a golf ball. Why? If you were as dumb as a computer, why would a golfd ball be an acceptable response?
  • a golf ball would be an acceptable response because it is still a ball.
  • You've learned about the object model and method lookups. What would the imapct be of injecting an additional ancestor into a class' lookup chain?
@ckaminer
ckaminer / CJK-prework.md
Last active March 21, 2016 04:36 — forked from mbburch/prework.md
Charles Kaminer Turing pre-work Gist

Turing School Prework - Charles Kaminer

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist: