Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alexander R Torrijos stormwild

🏠
Working from home
View GitHub Profile
@stormwild
stormwild / datetimeoffset.md
Last active Aug 9, 2022
Notes on DateTimeOffset
View datetimeoffset.md

Date Conversions

MS SQL Server

Create Replicable Setup To verify

If the database server timezone is running on UTC and timestamps are generated on the database as the default value using any date functions these dates would be the utc datetime at the time the row was inserted or updated.

If API Server system timezone is also utc then generated datetimeoffsets would be utc datetimes

View quotes.md

Quotes

Quality

Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.

William A. Foster

@stormwild
stormwild / react-hook-form.md
Last active Jul 26, 2022
React Hook Form and MUI
View react-hook-form.md

React Hook Form

MUI

Using Material UI with React Hook Form

import TextField from "@material-ui/core/TextField";
import React, { useState } from "react";
import { Button, Paper } from "@material-ui/core";
View marinades.md
View happiness.md

Happines

The Happiness Mandate

Happiness is an outcome, not a mandate, because the expectation of a constant state of happiness will cause you to constantly wonder, "Am I happy? Am I happy enough? Could I be happier? Should I leave this relationship? I'm happy, but maybe I could be happier somewhere else." This obsession with happiness and its relentless pursuit inherently creates massive uncertainty and self-doubt.

In a society that mandates happiness, the suffering doesn't disappear, but you need to find a new legitimacy. This is how notions of trauma, burnout, and many others became so widespread in the vernacular. If you put it in the framework of trauma, it becomes legitimized. Yes, trauma certainly exists — we can all agree on that, but the term itself has evolved to umbrella all the circumstances and events that have caused unhappiness. Whereas, in truth, unhappiness is simply part of life. One of many states of being in a wide spectrum.

> So, what do