Skip to content

Instantly share code, notes, and snippets.

View vis97c's full-sized avatar
🧠
Cogito ergo sum

Victor Saa vis97c

🧠
Cogito ergo sum
View GitHub Profile
@vis97c
vis97c / country-files.js
Last active January 5, 2024 16:09
Separate country data from dr5hn/countries-states-cities-database into smaller files
const fs = require("fs/promises");
const path = require("path");
const _ = require("lodash");
/**
* Write file
* @param {string} filePath
* @param {*} data
*/
async function writeFile(filePath, data) {
@vis97c
vis97c / index.js
Last active August 4, 2023 05:30
React tic tac toe
import React, { useState, useMemo } from 'react';
import ReactDOM from 'react-dom';
const rowStyle = {
display: 'flex'
}
const squareStyle = {
'width':'60px',
'height':'60px',