Skip to content

Instantly share code, notes, and snippets.

View jeff-pal's full-sized avatar

Jeff Pal jeff-pal

  • US Based Companies
  • Worldwide
View GitHub Profile
@jeff-pal
jeff-pal / pgModeler.install.md
Last active April 25, 2024 00:22
How to compile and install pgModeler on macOs - Apple Silicon M1- arm64

Dependencies

Step-by-step

Clone repos

@jeff-pal
jeff-pal / install_vscode_extensions.sh
Last active February 20, 2022 12:46
This is a shell script for installing my VS Code extensions list.
#!/bin/bash
: '
###########################################
# Stript for read my installed extensions #
###########################################
extensions=( $(code --list-extensions | xargs -L 1) )
codec = {
'646' : 'ascii',
'us-ascii' : 'ascii',
'big5-tw' : 'big5',
'csbig5' : 'big5',
'big5-hkscs' : 'big5hkscs',
'hkscs' : 'big5hkscs',
'IBM037' : 'cp037',
'IBM039' : 'cp037',
'273' : 'cp273',
@jeff-pal
jeff-pal / create_wp_chart_teams.sql
Created May 30, 2021 21:41
This is a sql query for create a table in WordPress environment.
CREATE TABLE IF NOT EXISTS wp_chart_teams (
id bigint(20) NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
emoji varchar(255) NOT NULL,
parent_id bigint(20),
user_id bigint(20) unsigned NOT NULL,
UNIQUE(id),
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
@jeff-pal
jeff-pal / README.md
Last active October 15, 2021 22:29
ReactJS - Hook customizado - useState() com Promise.

useStateWithPromise

Esse script é um hook customizado para possibilitar a espera da execução de atualização de estados no ReactJS.

Exemplo de uso:

import React, {useState} from 'react';
import useStateWithPromise from 'useStateWithPromise.js';