Skip to content

Instantly share code, notes, and snippets.

View TomasGonzalez's full-sized avatar
🪁
Flying a kite

Tomas Antonio Gonzalez Perez TomasGonzalez

🪁
Flying a kite
View GitHub Profile
@TomasGonzalez
TomasGonzalez / w44-store.json
Last active October 30, 2025 13:57
W44 Truth Source.
{
"offerPackagePrototype": {
"packages": [
{
"packageId": "PKG-1761827176892-1",
"accepted": true,
"packageName": "Paket 1",
"selectedProducts": {
"heatPump": {
"id": "hp1",
class NumMatrix {
matrix: number[][]
register = new Map<string, number>()
constructor(matrix: number[][]) {
this.matrix = matrix;
}
sumRegion(row1: number, col1: number, row2: number, col2: number): number {
let total = 0;
@TomasGonzalez
TomasGonzalez / ContraTest.tsx
Created October 20, 2020 16:17
ContraTest answer
/*
* There are 3 key problems with the React code below. Can you find them?
* Assume fetchUserProfile exists elsewhere.
*/
import { Suspense, useState, useEffect } from "react";
//the lack of type declarations
const SuspensefulUserProfile = ({ userId }: { userId: number }) => {
const [data, setData] = useState({});