Open in app

Sign In

Write

Sign In

Mav Tipi
Mav Tipi

24 Followers

Home

About

Feb 18, 2021

Install Ruby, Rails and a version manager (Mac)

This is a guide for those setting up Ruby environments on a Mac, either for the first time or just again on a new machine. First make sure you’ve dealt with your priors, for example getting your terminal in shape. Here’s a checklist I wrote last week for that. …

Ruby On Rails

2 min read

Ruby On Rails

2 min read


Feb 4, 2021

Sample CSS for Notification Badges

Over the past decade, notification badges have become so ubiquitous in web apps that I suspect they’re now deeply embedded in our psyches. The little red notification icon has in a short period used its Pavlovian power to tunnel into and damage our brain chemistry. …

Web Design

3 min read

Web Design

3 min read


Jan 28, 2021

Update a project’s dependencies with npm-check-updates

Node packages sometimes need to be updated to address security issues. If you’re tracking your project on GitHub, you might get notices about this from their dependabot utility. The best way to update a number of packages to their latest version is by using npm-check-updates. When you run “npm update”…

Nodejs

1 min read

Nodejs

1 min read


Jan 20, 2021

Samples of my custom CSS

These are some CSS effects I’ve made. Maybe they can inspire you. The quality of these gifs is very low. I’ll look into how that can be improved. Tab focus This has two elements — a background block, which grows from the bottom on mouseover and recedes when the mouse leaves…

CSS

1 min read

CSS

1 min read


Jan 14, 2021

You Should Use TypeScript With React.js

TypeScript and React are two of the most industry-relevant skills for junior developers, but I mostly see people choosing one or the other. The fact is, though, that they work perfectly well together, and take little configuration. What is React? The past decade has given us a number of important JavaScript libraries that…

Typescript

3 min read

Use TypeScript With React.js
Use TypeScript With React.js
Typescript

3 min read


Jan 7, 2021

Should you upgrade to Ruby 3?

Ruby is updated once a year, on Christmas. Two weeks ago, it got one of its most significant updates, going from version 2.7.2 to a big shiny 3. What’s new in Ruby 3? Here’s the official release announcement with details. I will attempt to summarize some new features. • It’s faster Increasing speed was one of the key…

Ruby

3 min read

Ruby

3 min read


Published in

The Startup

·Dec 31, 2020

Should I Use Date, Time, or DateTime in Ruby and Rails?

Having recently spun myself in circles looking at these options, I thought I’d spin up a guide on Ruby’s three timekeeping classes. What are Date, Time, and DateTime? All three are Ruby classes used for working with time. Time is built-in to Ruby; Date and DateTime come from the standard library date. Time.now #=> 2020-12-31 06:23:24…

Ruby

3 min read

Ruby

3 min read


Published in

The Startup

·Dec 24, 2020

Incrementing and Decrementing Variables with ++ and —

(Medium styles two minus signs as an em dash, like this: — . But we’re talking about two minus signs.) Incrementing a variable is one of the most common things you do as a programmer. The simplest way is to take itself and add 1: variable = variable + 1…

Programming

2 min read

Programming

2 min read


Dec 17, 2020

Improved ‘ls’ functionality in your terminal

A couple of weeks ago I wrote a post about using your bash_profile to create custom git commands to improve your workflow. Here are some more aliases I’ve found useful. These are written for a Mac environment, but the same functionality should be possible in Windows and Linux. Improved ls ls is…

Bash

2 min read

Bash

2 min read


Published in

Analytics Vidhya

·Dec 10, 2020

Implementing keyboard controls or shortcuts in Javascript

If you’re trying to make a game or interactive webapp in Javascript, you’re likely to find yourself wanting to implement keyboard controls. Event Listeners To do this, we’re going to use keyboard event listeners. These are keydown (detects when a key is pressed) and keyup (detects when a key is released). document.addEventListener('keydown'…

JavaScript

3 min read

Implementing keyboard controls or shortcuts in Javascript
Implementing keyboard controls or shortcuts in Javascript
JavaScript

3 min read

Mav Tipi

Mav Tipi

24 Followers

Weakly Pseudonymous Software Engineer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams