Skip to content

Instantly share code, notes, and snippets.

View brunofunnie's full-sized avatar

Bruno Funnie brunofunnie

  • São Paulo
  • 20:24 (UTC -03:00)
View GitHub Profile
@brunofunnie
brunofunnie / app.js
Created January 11, 2024 02:50
Javascript Object to Array conversion performance tests
// Based/copied on/from article: https://dev.to/petrtcoi/performance-of-the-spread-operator-2bpk
// npm install immer immutable ramba lodash @faker-js/faker
// node app.js
const _ = require('lodash');
const R = require('ramda');
const { Map } = require('immutable')
const { produce } = require('immer');
const { faker } = require('@faker-js/faker')
@brunofunnie
brunofunnie / gist:9883f1c5d7d5d91cc41b3ed4020a1365
Last active July 18, 2023 21:32
Tic Tac Toe - Grid Flexible
#include <stdio.h>
#include <stdbool.h>
void printBoard(int size, char board[size][size])
{
printf("\n");
for (int i = 0; i < size; i++) {
// Print row
for (int j = 0; j < size; j++) {
printf(" %c ", board[i][j]);