Skip to content

Instantly share code, notes, and snippets.

View JonDotsoy's full-sized avatar

Jonathan Delgado JonDotsoy

View GitHub Profile
@JonDotsoy
JonDotsoy / list.txt
Created June 24, 2022 16:38
domain list and respective SVG image
discord.gg https://iconmonstr.com/discord-1-svg/
slack.com https://iconmonstr.com/slack-2-svg/
class WrapFns {
tokensOriginals = {}
wrap(label, target, fnName) {
const self = this;
const original = this.tokensOriginals[label] ?? Symbol('original');
this.tokensOriginals[label] = original;
if (target[original] !== undefined) {
throw new Error(`${label} already wrapped`);

Keybase proof

I hereby claim:

  • I am jondotsoy on github.
  • I am jondotsoy (https://keybase.io/jondotsoy) on keybase.
  • I have a public key ASDAxUQuZdtPKDdb2wCdSUpZI-EniuqVZeq0NRUmuxW68Ao

To claim this, I am signing this object:

@JonDotsoy
JonDotsoy / README.md
Last active October 8, 2024 04:46
Conventional Commits to Terminal (zsh, sh)

Conventional Commits to Terminal (zsh, sh)

Git alias conventional-commit and m to create conventional commits so fast. And prepare the scope with the alias git scope <scope-name>.

image

How to install

Run the next line in your shell terminal

[
{
"productId": "75015",
"productName": "Torta Amada Masa tres leches 15 personas",
"brand": "AMADA MASA",
"brandId": 4873,
"brandImageUrl": null,
"linkText": "torta-tres-leches-amada-masa-15-pp",
"productReference": "000000000000648924-UN",
"productReferenceCode": "000000000000648924-UN",
{
"$schema": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json#",
"info": {
"title": "Http Error Schema",
"version": "1.0.0"
},
"components": {
"schemas": {
"Error": {
"description": "Object Error",
@JonDotsoy
JonDotsoy / convert-schema.json
Last active July 2, 2019 20:15
convert-schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Used to convert to parse files.",
"additionalItems": false,
"additionalProperties": false,
"required": [
"$schema",
"properties"
],
interface Options {
start: (this: Mocha) => any;
run?: (this: Mocha) => any;
end?: (this: Mocha) => any;
}
export function preMocha({ start, run, end }: Options) {
const mocha = require('mocha/lib/mocha');
const originalRun = mocha.prototype.run;
mocha.prototype.run = async function preRun(this: Mocha, ...args: any[]) {
@JonDotsoy
JonDotsoy / Helper To Mocha.md
Last active May 7, 2019 13:33
This is a function to create an asynchronous helper. This helps for helpers that perform mocha, db preparers, among others.

Create helper asynchronous to Mocha

This is a function to create an asynchronous helper. This helps for helpers that perform mocha, db preparers, among others.

How does it work

It stops Mocha#rut() preventing the upload of the files. it execute an asynchronous function and the continues with the mocha loader.

How to install