Skip to content

Instantly share code, notes, and snippets.

View nmcolome's full-sized avatar

Natalia Colomé nmcolome

View GitHub Profile
class ProfitAndLossSerializer < ActiveModel::Serializer
attributes :date, :sales, :discount, :net_sales, :cogs, :gross_profit, :op_expense, :net_profit
def net_sales
object.sales + object.discount
end
def gross_profit
self.net_sales + object.cogs
end
class Sale < ApplicationRecord
belongs_to :client
belongs_to :region_product
has_many :discounts, dependent: :destroy
has_many :cost_of_goods_solds, dependent: :destroy
has_many :operating_expenses, dependent: :destroy
def self.get_profit_and_loss
Sale.find_by_sql [
"SELECT EXTRACT(month FROM sales.transaction_date) AS month,
@nmcolome
nmcolome / post_grad_plan.md
Created September 18, 2017 09:43
Post Grad Job Search Plan

Post-Grad Job Search Action Plan Template

#1: Job Search Plan: Create a schedule & goals

  1. Design a 40-hour "work week" that provides time for:
    • Code (ideally, 2-4 hours a day will be dedicated to coding) - Afternoons. Twice a week I'll spend the afternoon doing code challenges online and 3 days a week I'll work on a project on languages I already know. (I'll learn new ones when I get a job).
    • Outreach - Mornings- After I apply to a job I immediately outreach someone in the team. Searching a person can take a long time so I would dedicate mornings.
    • Research - Mornings. Researching about jobs and outreaching are closely related.
    • Network -first week out of Turing I'm going to Denver Startup week and I have tickets to Women in Tech Summit.
    • Any other areas where you'd like to grow - One hour before going to sleep I want to read 1 chapter of a book. Preferably code related.
@nmcolome
nmcolome / interview_reflection.md
Created September 18, 2017 09:18
Interviews reflection

Suggested ideas to include in your reflection:

What happened in the interview/practice? What are some best practices of technical interviews that you've discussed? What did you excel at in the practice? What will you continue to practice as you prep for interviews in the future? What surprised you about the practice?


@nmcolome
nmcolome / chat_tutorial_user_stories.md
Last active September 11, 2017 22:27
My Chat Tutorial User Stories

User Stories for 'My Chat' Tutorial

User can sign up

As a guest user (without an account) When I visit the root page And I click on Sign Up I fill in my username I fill in my password I click on Sign Up And I get redirected to the root page

@nmcolome
nmcolome / blog.md
Created September 11, 2017 07:20
mod4_deliverable

My Blog Post: (My Chat Tutorial Part I)[https://medium.com/@nmcolome/my-chat-tutorial-part-i-6a3f898a4faa

How I'll use it to connect with people:

  1. I'll request people in and outside my cohort to proofread it and give me feedback.
  2. 2 Turing fellows helped me with this tutorial so I'll write them for feedback and I'll thank them for their help.
  3. I have a repository with the code for the tutorial for people to reference
  4. I will publish it on twitter and linked
@nmcolome
nmcolome / pre-mod-4-reflection.md
Last active August 7, 2017 18:17 — forked from case-eee/pre-mod-4-reflection.md
These are reflection questions for students entering backend module 4.

M4 Reflection

Fork this gist and answer these questions to reflect on your learning experiences.

  • What brought you to Turing?

I wanted to change into a career that would allow me to have different challenges constantly, where I could problem solve and build solutions for others in an efficient way. I chose Turing because in my experience, it's not just about how good you are, it's also about how well you work with others and I was really happy to see that Turing is focused on not just teaching you to code, but to be part of a community and to collaborate with others (which I believe it's the most important factor in any job).

  • Where do you see yourself after Turing?

Natalia Colome - Flower Exercise

Petal #1: Favorite Knowledges And/Or Fields of Interest

Knowledge

  • Data Analysis
  • Finance (information needs, workflow, priorities, constraints)
  • Supply Chain (information needs, workflow, priorities, constraints)
  • Sales (information needs, workflow, priorities, constraints)
@nmcolome
nmcolome / M4_action_plan.markdown
Last active July 31, 2017 01:26
M4 Action Plan

Natalia Colome: Module 4 Action Plan

Module 4 Goals

List your longterm goal(s) of what you want to accomplish by the end of module 4

  • Confidence using Javascript/React/Node.js
  • Confidence going into an interview and in my coding skills
  • Build a network
  • Be in the later stages of an interview process (hopefully get a job by the end of October)

Week One - Module 3 Recap

Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON!).

Note: When you're done, submit a PR.

  1. What is json, what does it stand for, and why is it important?
  2. What kind of object is JSON in Ruby? How do we know it's JSON?
  3. What's the difference between joins and includes in ActiveRecord?
  4. What's an API?