Skip to content

Instantly share code, notes, and snippets.

View abc0990cba's full-sized avatar
🍍
Focusing

abc0990cba

🍍
Focusing
View GitHub Profile
@abc0990cba
abc0990cba / main.go
Created July 26, 2025 14:18 — forked from thomasdarimont/main.go
Keycloak Go RP Client Example with PKCE
/*
This is an example about how to use a public client written in Golang to authenticate using Keycloak.
This example is only for demonstration purposes and lacks important
*/
package main
import (
"encoding/json"
"errors"
"log"
@abc0990cba
abc0990cba / .env
Created March 21, 2024 19:16 — forked from sandeepsuvit/.env
nestjs file upload using multer
##
# File properties
##
UPLOAD_LOCATION=/Users/dummyusername/Documents/temp/nvaluate
# Max 5Mb allowed
MAX_FILE_SIZE=5
MAX_FILE_COUNTS=20
#1 Install dependecies :
- fs-extra
- exceljs
- multer
- @types/multer
- lodash
- class-validator
- class-transformer
- rxjs
@abc0990cba
abc0990cba / import_excel.js
Created March 19, 2024 14:10 — forked from roqbez/import_excel.js
Node.js + Nest.js code to import Excel file to a database
import { HttpService, Injectable, Logger } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { ReadStream } from 'fs';
import { Sequelize } from 'sequelize-typescript';
import * as xlsx from 'xlsx';
import { WorkBook, WorkSheet } from 'xlsx';
import { ArquivoImportacao } from './dto/arquivo-importacao.dto';
@Injectable()
export class ImportacaoProcessosService {
@abc0990cba
abc0990cba / 00-ReactToolFactory.tsx
Created March 13, 2024 15:23 — forked from mmmeff/00-ReactToolFactory.tsx
A simple Typescript-forward utility that spits out Editor.js tools for React components. You may need to include relevant Context providers for your application as wrappers around whatever <Component> is rendered by the factory
// Based on https://walkthrough.so/pblc/QCawSCKwOQLn/creating-a-custom-editorjs-block-tool-with-react
import type {
API,
BlockAPI,
BlockTool,
BlockToolConstructorOptions,
} from '@editorjs/editorjs'
import ReactDOM from 'react-dom'
@abc0990cba
abc0990cba / Wasm-FAQ-2019.md
Created January 19, 2024 22:26 — forked from MaxGraey/Wasm-FAQ-2019.md
WebAssembly FAQ для телеграм сообщества WebAssembly_ru

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

@abc0990cba
abc0990cba / Wasm-FAQ-2019.md
Created January 19, 2024 22:26 — forked from MaxGraey/Wasm-FAQ-2019.md
WebAssembly FAQ для телеграм сообщества WebAssembly_ru

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

@abc0990cba
abc0990cba / Wasm-FAQ-2019.md
Created January 19, 2024 22:26 — forked from MaxGraey/Wasm-FAQ-2019.md
WebAssembly FAQ для телеграм сообщества WebAssembly_ru

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

@abc0990cba
abc0990cba / canvasDownload.js
Created January 9, 2024 10:00 — forked from Kaundur/canvasDownload.js
JS to automatically download canvas as a png
// This code will automatically save the current canvas as a .png file.
// Its useful as it can be placed in a loop to grab multiple canvas frames, I use it to create thumbnail gifs for my blog
// Only seems to work with Chrome
// Get the canvas
var canvas = document.getElementById("canvas");
// Convert the canvas to data
var image = canvas.toDataURL();
// Create a link
var aDownloadLink = document.createElement('a');
@abc0990cba
abc0990cba / loader.js
Created January 5, 2024 19:28 — forked from umcconnell/loader.js
Loading animation for node console
// Adapted from https://stackoverflow.com/questions/34848505/how-to-make-a-loading-animation-in-console-application-written-in-javascript-or
/**
* Create and display a loader in the console.
*
* @param {string} [text=""] Text to display after loader
* @param {array.<string>} [chars=["⠙", "⠘", "⠰", "⠴", "⠤", "⠦", "⠆", "⠃", "⠋", "⠉"]]
* Array of characters representing loader steps
* @param {number} [delay=100] Delay in ms between loader steps
* @example