Skip to content

Instantly share code, notes, and snippets.

View RobertAKARobin's full-sized avatar

Robin (Robert) Thomas RobertAKARobin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am robertakarobin on github.
  • I am robertakarobin (https://keybase.io/robertakarobin) on keybase.
  • I have a public key ASDVGB3oarwzNAiR4gJOPtpZKybBmyC4UUfVJ_Tn8hT9owo

To claim this, I am signing this object:

@RobertAKARobin
RobertAKARobin / python.md
Last active April 18, 2024 20:44
Python Is Not A Great Programming Language
@RobertAKARobin
RobertAKARobin / observables.md
Last active August 30, 2021 15:46
Other articles on observables are dumb

Other articles on observables are dumb

1. They use bad examples

Anything can be an observable!! Even data that never changes!!!

const myObservable = Observable.from('Hello world');
myObservable.subscribe(data => console.log(data));

It prints 'Hello world'! Amazing!!

@RobertAKARobin
RobertAKARobin / twins.md
Last active May 20, 2022 14:15
Twin quotes
C: "I made another picture. You can keep it or I can keep it. If you keep it that's ok, if I keep it that's also ok. I think I will keep it. I did work super hard on it. It has sooooo many rainbows and details"
C: and then I said "stop it". If we write it down it will have an exclamation mark at the end. 
J: what is blood made out of? Me: I don't know. C: it has minerals like iron
"Charlie, I don't like it when you say shut up because that hurts my feelings and i feel like you're not my best friend. Next time can you say, 'I'm concentrating, give me a minute'"
May 2022
Charlie, eating Chinese food: "it's spicy in the background"
"They take the meat off the pig's legs, belly..." James: "I bet the pig feels really crabby about that."
Arielle: "You know what dipped into my bucket?" Charlie: "When I said you're the worst mom in the world." "Can you pay me a compliment?" "...I like your shirt!"
April 2022
@RobertAKARobin
RobertAKARobin / animations.md
Last active September 11, 2023 16:29
Which web animations are expensive and which are cheap?

Which web animations are expensive and which are cheap?

You can add a lot of polish to a website or app with animations and transitions. Some animations can be built in two seconds with a single line of code. Others take days, and still others have to be hand-drawn by an actual animator. How do you tell which is which?

Skip to examples of "cheap" animations

(Note to developers: The examples are all simple hand-written SVGs, animated with CSS. Click on an image to open it in a new tab, and then "view source.")


What makes animations "expensive"?

@RobertAKARobin
RobertAKARobin / bounce.scss
Created July 6, 2021 08:01
SCSS bounce mixin
@use 'sass:map';
@use 'sass:math';
@function roundTo($num, $places: 2) {
$factor: 100 * $places;
@return math.round($num * $factor) / $factor;
}
@mixin bounce(
$acceleration: null,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RobertAKARobin
RobertAKARobin / o365.md
Last active November 18, 2022 20:45
Rackspace to Office 365

As of yesterday we're fully off Rackspace and onto Microsoft-direct Office 365! Our solution was:

  1. Through Rackspace's Office 365 page, buy Rackspace-managed Office 365 licenses for all the users. These show up in 365 Admin as "Reseller" licenses, as opposed to licenses purchased directly from Microsoft which show up as "Commercial direct".

  2. Use Rackspace's email migration tool (which is actually BitTitan MigrationWiz reskinned for Rackspace) to migrate all of the Rackspace/Hosted Exchange addresses to 365. This tool comes bundled with Rackspace-managed 365 licenses, but not Microsoft-direct licenses.

I tried 4000 ways of migrating with Office 365's built-in migration tool and got nowhere, and Rackspace's support was no help. If you look around you'll see that BitTitan is recommended pretty much universally for this. It's fantastic that Rackspace's 365 licenses bundle it.

Note that it seems once you've migrated a mailbox, if you migrate again then BitTitan only p

@RobertAKARobin
RobertAKARobin / denolint.md
Last active December 15, 2022 18:26
Hot take: The biggest roadblock to Deno being used for serious business is Deno Lint

Yes, it's cool and all that it's "blazing-fast". And for brand-new projects with small teams, it's probably totally sufficient. But IMO it's one of the biggest roadblocks to Deno being used for Serious Business.

Having robust linting/styles rules is crucial for robust development teams. All the established companies for whom I've worked spent years honing their ESlint rules. But most of these rules have no Deno equivalent. You can only replace ESlint with Deno Lint in fairly simple use-cases, and can't really use ESlint on Deno projects (despite my best efforts).

Even though Deno is great, even though the code "works", the inability to granularly enforce styles across a development team is a deal-breaker. Honestly the fact that the Deno team kind-of reinvented a wheel unnecessarily with Deno Lint feels like NIH (Not Invented Here) Syndrome, which is super disappointing given the respect I have

@RobertAKARobin
RobertAKARobin / safari.md
Last active January 5, 2024 05:41
Safari's date-picker is the cause of 1/3 of our customer support issues

Safari's date-picker is the cause of 1/3 of our customer support issues

...and obviously we're building a workaround. But I'm absolutely flabbergasted that a standard <input type="date"> HTML field, in a standard browser, from a company that bases its reputation good design, could be so dreadful.

The context

I'm the developer for a startup that sells a genetic test to recommend medications for high blood pressure. For medical reasons we need to know our customers' birth date. Most of our customers are in their 60s or older. We've found that many of them use iPads or iPhones. And they're the ones who complain to our customer support that our site is unusable.

The problem