Skip to content

Instantly share code, notes, and snippets.

View CarlosDanielDev's full-sized avatar
:octocat:
debugging

Carlos Daniel CarlosDanielDev

:octocat:
debugging
View GitHub Profile
@CarlosDanielDev
CarlosDanielDev / benchmark-time.js
Created March 28, 2025 18:21
Script to make a Benchmark and give metrics about time running.
const { exec } = require("node:child_process");
const { promisify } = require("node:util");
const run = promisify(exec);
const args = process.argv.slice(2);
function printHelp() {
console.log(`
Benchmark CLI Tool
==================
// DynamicModelModule
import { Module, Global } from '@nestjs/common';
import { MongooseModule, getModelToken } from '@nestjs/mongoose';
import { Connection } from 'mongoose';
@Global()
@Module({})
export class DynamicModelModule {
static forFeature(collectionName: string, schema: any): DynamicModule {
#include <WiFi.h>
#include <AsyncTCP.h> // https://github.com/me-no-dev/AsyncTCP
#include <ESPAsyncWebServer.h> // https://github.com/me-no-dev/ESPAsyncWebServer
#include <ArduinoJson.h> // https://arduinojson.org/
#include <RoboCore_Vespa.h>
struct servo_angles {
uint8_t min;
uint8_t max;
import dynamic from 'next/dynamic'
import Component from 'component'
const DynamicComponent = dynamic<React.ComponentProps<typeof Component>>(() =>
import('component').then((mod) => mod.Component),
)
WEBVTT
00:00:00.000 --> 00:00:00.999 line:80%
Hildy!
00:00:01.000 --> 00:00:01.499 line:80%
How are you?
00:00:01.500 --> 00:00:02.999 line:80%
Tell me, is the lord of the universe in?
WEBVTT
1
00:00:08,717 --> 00:00:09,342
Olá!
2
00:00:09,634 --> 00:00:14,139
Chegamos então ao fim dessa nossa jornada
aqui pelo autoconhecimento
@CarlosDanielDev
CarlosDanielDev / web-sdk.js
Created August 20, 2021 20:05
WEB ORACLE SDK
/*!
* Copyright (c) 2021 Oracle and/or its affiliates.
* All rights reserved. Oracle Digital Assistant Chat Web SDK, Release: 21.06.0
*/
var e,t;e=self,t=function(){return function(){var e={6432:function(e,t,n){(t=n(3645)(!1)).push([e.id,".wrapper {\n box-sizing: border-box;\n height: 0;\n position: fixed;\n text-transform: none;\n transition: all 0.25s ease-in-out;\n width: 0;\n z-index: 10000;\n}\n\n.button {\n background-position: center center;\n background-repeat: no-repeat;\n border: none;\n bottom: 0;\n cursor: pointer;\n overflow: visible;\n padding: 0;\n position: absolute;\n right: 0;\n text-align: center;\n touch-action: none;\n transition: height 0.25s ease-out, width 0.25s ease-out;\n z-index: 10000;\n}\n\n[dir=rtl] .button {\n left: 0;\n right: unset;\n}\n\n.button:focus {\n outline: thin solid #fff;\n}\n\n.expanded:not(.drag) .button {\n -webkit-animation: scale-out-center 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) f
@CarlosDanielDev
CarlosDanielDev / canvas.css
Created August 13, 2021 18:44
Pixelated Image canavs
.canvas-class {
image-rendering: pixelated;
image-rendering: crisp-edges;
image-rendering: -moz-crisp-edges;
}
git config --global --edit
[user]
	name = your name here
	email = [email protected]
[core]
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RCTCxxBridgeDelegate.h>
#import <ReactCommon/RCTTurboModuleManager.h>
// add headers (start)