Skip to content

Instantly share code, notes, and snippets.

View ToniRib's full-sized avatar

Toni Rib ToniRib

View GitHub Profile
@ToniRib
ToniRib / run_hacker_proposal.markdown
Last active February 29, 2016 18:35
Personal Project Proposal

Run Hacker

Pitch

Run hacker provides custom analytics and visualizations for runners who use MapMyRun to be able to analyze trends in their running so they can improve their performance.

Problem

There's a lot of data collected via various running applications but no good way to analyze trends across multiple runs to pinpoint areas that can be improved. The tools provided by the applications themselves are pretty rigid in that they don't allow customization and are generally only give you data for one run at a time.

@ToniRib
ToniRib / .railsrc
Created February 15, 2016 22:01
My railsrc file
--skip-bundle
--skip-test-unit
--database=postgresql
--skip-turbolinks
--template=~/template.rb
@ToniRib
ToniRib / template.rb
Last active February 23, 2016 16:22
My working document for my rails application template
# Remove the gemfile so we can start with a clean slate otherwise Rails groups
# the gems in a very strange way
remove_file "Gemfile"
add_file "Gemfile"
prepend_to_file "Gemfile" do
"source \"https://rubygems.org\""
end
# Add all the regular gems

Toni Rib, Dan Winters, Joseph Perry

  1. What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
  • When you concatenate files, you combine multiple files into one large file so you only have to make one request.
  1. What does it mean to precompile files? What does this have to do with coffeescript and sass files?
  • To put the files into a format that your browser can read prior to the browser requesting it. Coffeescript compiles to javascript and sass compiles to css.
  1. What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
  • Remove all whitespaces and shorten any code that can be shortened. This makes the files much smaller so they load more quickly, but they also aren't human readable so you can't work in them that way.
  1. 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 yo
#!/usr/bin/env ruby
#You'd have to be very trusting to run this...
require "base64"
require 'pry'
string = "IyEvdXNyL2Jpbi9lbnYgcnVieQojWW91J3JlIGRvaW5nIHF1aXRlIHdlbGwu\nCnJlcXVpcmUgImJhc2U2NCIKZXZhbChCYXNlNjQuZGVjb2RlNjQoIkl5RXZk\nWE55TDJKcGJpOWxibllnY25WaWVRb2pUMjRnZEdobElISnBaMmgwSUhSeVlX\nTnJMaTR1Q25KbFxuY1hWcGNtVWdJbUpoYzJVMk5DSUtaWFpoYkNoQ1lYTmxO\nalF1WkdWamIyUmxOalFvSWtsNVJYWmtXRTU1XG5UREpLY0dKcE9XeGlibGxu\nWTI1V2FXVlJiMnBVTWpWcVdsTkNhRm95Um5CaWFYZG5XbGhvYWxwWGVITmFc\nblZ6VXdTVWhrZGx4dVkyMXpkVU51U214aldGWndZMjFWWjBsdFNtaGpNbFV5\nVGtOSlMxcFlXbWhpUTJoRFxuV1ZoT2JFNXFVWFZhUjFacVlqSlNiRTVxVVc5\nSmEydzFYRzVTV0ZwclYwVTFOVlJFU2t0alIwcHdUMWQ0XG5hV0pzYkc1Wk1q\nVlhZVmRXVW1JeWNGSlZNRXB3V2taa2Fsb3lSbGhPUjJSclVqSm9jMU5WWkU5\nY2JtUnNcbmNFaFdWMlJvVjBVeGJscEVTVFZsVm5oMVdrVmtibG95VWtsYVNG\ncEtVako0TVZOVmFGTmlNWEJVVVcxMFxuYVUxck5IaFpiR1JYWkZkU1NGeHVV\nbXBDYUZaNmJERlVSMlIzWlZad1dWSnFSbWhYUlhCelUxVk9TMkZXXG5iRmxV\nYlhoUFlXeEdjRmhITlVSaVZsbDVWMVprTTJJeFJuUlNibkJoWEc1V1JtdDNW\nRWN4VTJKR2EzbFBcblYzUmhWa1pyZDFNd1RrdFRiVlpXVm1
@ToniRib
ToniRib / setting_expectations.markdown
Last active January 11, 2016 17:31 — forked from rwarbelow/setting_expectations.markdown
Setting Expectations - Little Shop of Orders

Setting Group Expectations

Group Member Names: Toni Rib, Brenna Martenson, Taylor Moore

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
  • Toni: Tuesdays w/Toni 4:15-5:45pm, Thursday w/Alex 4-5pm, next Wed w/Alex 4-5pm, next Thurs w/mentor 5pm-7pm, Horace bitcoin 4pm-5pm
  • Taylor: mentor meeting at some point, probably Wed or Thurs
  • Brenna: friend in town on Thursday, dinner at some point with them
  1. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?
  • ? - on any page, pops up a window showing all of the keyboard shortcuts available on that page
  • g + d - Go to your dashboard from anywhere on GitHub
  • s - focus in on the search bar
  • g + c - If you're in a repo and NOT focused on the code tab (for example, looking at issues or settings), this will take you to the code tab
  • w - When browsing source code (clicked into a folder or file of your code in a repo), allows you to select a new branch from the list of branches
  • t - When in a repo, this opens the file finder allowing you to start typing a filename or scroll through the files to select one
  • l - When inside of a source code file, pops up a modal that allows you to type in a line number and hit enter, then jumps to that line in the file
  • g + p - When inside of a repo, goes to the pull requests tab for that repo. Useful if you're collaborating on a project and approving/reviewing a lot of pull requests

[GitHub Shortcuts CheatSheet](https://help.github.com/articles/usi

# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@ToniRib
ToniRib / git-completion.bash
Created January 7, 2016 15:54
git-completion
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@ToniRib
ToniRib / .bash_profile
Created January 7, 2016 15:52
Current bash profile
# Enable color alias
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -lGFah'
# Enable git aliases
alias gc='git commit'
alias ga='git add'
alias gs='git status'
alias gp='git push'