Skip to content

Instantly share code, notes, and snippets.

@raghubetina
raghubetina / dates.md
Last active March 21, 2019 19:49
Dates Cheatsheet

Dates Cheatsheet

In this guide, I'll show you how I prefer to handle dates.

We'll

  1. use a gem called Chronic to intelligently parse a wide variety of user input into valid Dates,
  2. I'll also show you a gem that helps create nice looking datepicker controls,
  3. look at some built-in Ruby/Rails methods that help us format dates and times nicely for our users to look at.
@raghubetina
raghubetina / design.md
Last active December 25, 2017 20:52
HTML, CSS, & Design Resources

Everything I Know About Front-End In One Handy List

As you go about designing and coding your application's screens, here are a few resources that you may find useful. In rough order of importance/handiness (in my experience).

Design

  • [Butterick's Typography In Ten Minutes][1] - A ten minute read that is guaranteed to make your content look better.
  • [Google Web Fonts][2] - You'll want this after reading Butterick's.
  • [Beautiful Web Type][3] and [Typographic Project][4] - A curated showcase of Google Web Fonts.
  • [Stock Up][6] - A search engine for free stock photos.
@raghubetina
raghubetina / idea_mapping.md
Last active November 15, 2018 18:34
Idea Mapping

1. Pain Points

You should think of a couple of pain points in your life that you would like to solve with a simple CRUD app. Remember,

The verb you want to be using with respect to startup ideas is not "think up" but "notice." — [Paul Graham, "How to Get Startup Ideas"][1]

Don't try to think up billion dollar startup ideas; our goal here is to discover a good first learning project, not to save the world just yet. Try to notice a real annoyance at work or at home or with friends that we can solve, even if for just one user -- you.

For example, [here is a project that a student made last quarter][2] -- a simple app that lets you keep track of whether or not it's time to dry clean pieces of clothing. Another student made a nice app that suggests which of your credit cards to use in order to maximize rewards based on what kind of purchase you are about to make.

@raghubetina
raghubetina / friendbook.md
Last active March 31, 2016 15:24
Friendbook Exercise Resources

Friendbook

In this project, we'll create our very first HTML page; a profile of ourselves. In the end, we'll work our way up to something that looks like this target.

First, we'll create the following sections in the page:

  • My name and profile photo (or make up a fake persona and grab an image from here)
  • Where I'm from
  • Some of my app ideas
  • Some of my photos (or grab some stock images from here)
@raghubetina
raghubetina / rails_installer_fix.md
Last active January 13, 2017 23:07
Fixing RailsInstaller 3.3.0

Fixing RailsInstaller 3.3.0

Unfortunately, for those of us on Windows, it looks like Rails Installer has a bug! We need to get going right now, so we'll have to fix it ourselves manually.

If when you type rails -v in your Command Prompt with Ruby and Rails, you get the message

The system cannot find the path specified.

then follow these steps:

class CalculationsController < ApplicationController
def word_count
@text = params[:user_text]
@special_word = params[:user_word]
# ==========================================================================
# Your code goes below.
# The text the user input is in the string @text.
# The special word the user input is in the string @special_word.

Product management process with Trello

A Trello board is a software equivalent of a physical wall with columns of sticky notes. In Trello terminology, the wall is called a "board." The columns are called "lists." The sticky notes in columns are called "cards."

No two products are the same, so flexibility in the product management process is important. Trello responds well to changing the structure of the process "on the fly."

@raghubetina
raghubetina / airbnb_stories.md
Last active September 28, 2023 13:53
Airbnb User Stories

Airbnb User Stories

This is a simplified version of Airbnb. Only worry about user stories described here. Don't worry about things like payment, etc. Assume for now that this is only a platform that facilitates communication.

As a host, I should be able to...

  • Add a listing
  • Title
  • Private room or entire home
  • Photos (taken by host)
@raghubetina
raghubetina / yelp_stories.md
Last active April 1, 2022 16:22
Yelp User Stories

Yelp User Stories

This is a simplified version of Yelp. Only worry about user stories described here.

As a user, I should be able to...

On the Restaurants page

  • See a list of restaurants
  • Search by name
@raghubetina
raghubetina / management_readings.md
Last active December 25, 2017 20:55
A few readings on managing software products

A few readings on managing software products

Workflows

A very powerful Git flow

This is behind a paywall (but there's a trial period). It's very low-level and tactical, so probably hard to understand right now; but you should refer developers that you work with to it, and they should either have a flow similar to this one, or good reasons for using something different:

https://thoughtbot.com/upcase/videos/git-thoughtbot-git-flow