Skip to content

Instantly share code, notes, and snippets.

View hdoro's full-sized avatar

henrique doro hdoro

View GitHub Profile
@hdoro
hdoro / TicTacToeGame.svelte
Last active August 26, 2022 16:48
Minimal TicTacToe game, with UI in SvelteJS - repo with tests and npm set-up: https://github.com/hdoro/tictactoe-rc
<script>
import { STATE_RETURNS, validateState } from "./gameState";
/**
* What goes into the game loop:
*
* 1. Prompt the first player (Cross) for their move
* 2. Moves are composed of [rowNumber, columnNumber]
* 3. If move is invalid, re-prompt
* - Spot already filled
import React from "react";
import { useInView } from "react-intersection-observer";
import getImageProps from "./getImageProps";
// Assuming you don't expand the image's asset reference
export interface SanityImage {
_type?: "image";
alt?: string;
caption?: string;
/*!
dBBBBb dBBBBP dBBBBP dBP dBP dBBBP dBP .dBBBBP dBP dBBBBP dBBBBb
dBP dB'.BP dB'.BP dBP.d8P BP dB'.BP dBP
dBBBK' dB'.BP dB'.BP dBBBBP' dBP dBP `BBBBb dBP dB'.BP dBP dBP
dB' db dB'.BP dB'.BP dBP BB dBP dBP dBP dBP dB'.BP dBP dBP
dBBBBP' dBBBBP dBBBBP dBP dB' dBBBBP dBP dBBBBP' dBP dBBBBP dBP dBP
* Bookcision v4.0.5 - Excise your notes/highlights from read.amazon.com
* https://bookcision.readwise.io
@hdoro
hdoro / SketchSystems.spec
Created August 12, 2020 19:35
## Login form
## Login form
idle*
submit -> can submit?
can submit?
yes -> authenticating
no -> invalid
invalid
submit -> can submit?
authenticating
@hdoro
hdoro / SketchSystems.spec
Last active August 13, 2020 13:25
# supermercadosonline.com.br
# supermercadosonline.com.br
# Pre-render bem otimizadinho
Home*
# Form com validação
buscar cep -> CEP
# Um tanto de link de rodapé, essencialmente
escolher cidade de lista -> Cidade
# Carrega 100% no cliente
CEP
# Puxa direto da API deles
@hdoro
hdoro / SketchSystems.spec
Last active August 28, 2020 17:08
## Static content served by Sanity
## Static content served by Sanity
Homepage*
is logged in -> Logged area
click log-in -> Auth
## Authentication methods provided by firebase
Auth
login*
success -> Logged area
dont have account -> signup
@hdoro
hdoro / fetching-data-sanity-preview.md
Created September 17, 2018 22:43
My implementation of fetching data from Sanity for live-previewing on a Gatsby site. Extension of my guide on https://henrique.codes

Fetching and subscribing to data from Sanity

const sanityClient = require('@sanity/client');
const imageUrlBuilder = require('@sanity/image-url');

// I store my query in another file for reusability with
// the `gatsby-source-plugin`
const modularQueries = require('../../../../sanityQueries/modularQuery.js');
import { removeWhitespace } from '../../../utils/strings';

Feedback front Nata

CSS e afins

[🔔 NOVA] Incluir mais "fallbacks" para as fontes

Primeiramente, mandaram muito em aplicar as mudanças propostas! O que acharam, fez sentido?

Uma coisa que percebi nessa implementação foi que vocês só incluiram a sans-serif como fonte "fallback" pro heading: