Skip to content

Instantly share code, notes, and snippets.

View BrunoAlmeidaKotesky's full-sized avatar
🏠
Working from home

Bruno Kotesky BrunoAlmeidaKotesky

🏠
Working from home
View GitHub Profile
@BrunoAlmeidaKotesky
BrunoAlmeidaKotesky / createStateMachine.ts
Last active March 7, 2023 14:23
Proposal state machine for sp-list-formatter
function createStateMachine<States extends string, TagIds extends string>(
events: {
for: [States, TagIds, FormatterOptions][],
transitions: Array<{
from: States,
to: States,
when: {
operator: Operators,
operands: Operands
}
//use OpenGL library for drawing a simple red house.
#include <GL/glut.h> // GLUT, includes glu.h and gl.h
#include <stdlib.h>
#include <stdio.h>
// Initialize OpenGL Graphics
void init()
{
// Define a cor de fundo da janela
@BrunoAlmeidaKotesky
BrunoAlmeidaKotesky / useTypedTranslation.ts
Created August 20, 2020 18:18
Type React-i18next useTranslation()
import * as React from 'react';
import { useTranslation } from 'react-i18next';
type Dictionary = string | DictionaryObject;
type DictionaryObject = { [K: string]: Dictionary };
const dict = {
form: {
title: 'Nova Ideia',
fields: {
unit: 'Qual é a sua unidade?',