Skip to content

Instantly share code, notes, and snippets.

@raghubetina
raghubetina / zshrc_additions.md
Created May 4, 2024 17:08
My additions to .zshrc

After using thoughtbot/laptop and thoughtbot/dotfiles, this is what I append to my ~/.zshrc:

# Make VSCode the default editor
export EDITOR="code --wait"


# Configure Autojump and j alias
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
@raghubetina
raghubetina / apprenticeship-artifacts.md
Last active September 10, 2024 01:02
Artifacts from DPI Software Development Apprenticeship Program

Artifacts from a 1-year Full-Stack Developer program

If we run a 1-year Full-Stack Development program, what artifacts would we want students to exit with? What would hiring managers want to see? What will make our graduates stand out?

We should contact employer partners to ask them what they'd like to see, especially ones like who have strong apprenticeship/in-house training programs in place. E.g., thoughtbot.

Once we figure out the artifacts that would best demonstrate valuable skills/make candidates attractive, we should create a dream personal website/portfolio to act as a target for students, including stretch goals. We can then backward design the curriculum from there.


@raghubetina
raghubetina / add_sprockets_js.md
Last active May 6, 2021 12:47
Add Sprockets JS back to Rails 6 apps

Add Sprockets JS back to Rails 6 apps

  1. Create folder app/assets/javascripts

  2. Create file app/assets/javascripts/application.js

  3. Add some JS inside. You can use directives; e.g.:

    //= require_tree .

console.log('howdy');

@raghubetina
raghubetina / cli_git_l1.md
Last active April 29, 2021 12:22
Command-line Git: Level 1
@raghubetina
raghubetina / exclusive_endless_range_where_test.rb
Last active November 17, 2020 04:49
Executable test case for behavior of `where` with exclusive endless ranges
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Activate the gem you are reporting the issue against.

Rewards Maximizer

  • Admin enters master list of 15 major credit cards.
  • User signs up.
  • User selects which credit cards they have.
  • Admin keeps reward category (gas, groceries — admin will flatten all points, miles, etc, into some cashback value) for each card up to date.
  • When user makes a purchase, they will visit and the app will tell them what card to use.
    • Some day in the future maybe we'll detect where they are with geolocation, but we'll see.
@raghubetina
raghubetina / feedback_app.md
Created July 9, 2020 01:18
Feedback App Specs

Feedback App Specs

  • A user should be able to sign up
  • A user creates a feedback request
  • The request has some number of questions
  • The user shares the URL of the request with whomever
  • People come and answer the questions anonymously
@raghubetina
raghubetina / .irbrc
Created January 12, 2020 00:55
IRB runcom
require 'rubygems'
require 'active_support/all'
require 'pry'
Pry.start
exit
@raghubetina
raghubetina / sneaky-sw.md
Last active November 23, 2019 18:06
Sneaky Southwest Checkins app task list

Sneaky Southwest CheckIns App

Target

https://sneaky-sw.herokuapp.com/

Tasks

  • First, explore the target and ask questions about its features. For your own app, this would be the ideation/wireframing/scoping stage.
  • Then, domain model — figure out the entire database structure: all tables and all columns. What associations are there? What foreign key columns and/or join tables? For each column, what validation rules, if any?
@raghubetina
raghubetina / builder-io-404.md
Last active September 22, 2022 21:33
Delegating 404s to builder.io in Rails

Delegating 404s to builder.io in Rails

Give builder.io a chance to respond to paths that you don't have a route for before serving up a 404 page:

  1. In Gemfile, add gem 'rack-cors' and bundle.

  2. In config/application.rb, add:

     config.middleware.insert_before 0, Rack::Cors do
       allow do