I hereby claim:
- I am awmpietro on github.
- I am amcode (https://keybase.io/amcode) on keybase.
- I have a public key ASCA4Lvf3plKE_21E-FZNUXUV1Azs96nIAQyQpFvO3KRkAo
To claim this, I am signing this object:
| git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch FOLDERNAME" -- --all | |
| rm -rf .git/refs/original/ | |
| git reflog expire --expire=now --all | |
| git gc --prune=now | |
| git gc --aggressive --prune=now |
| #!/bin/bash | |
| for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done | |
| git fetch --all |
I hereby claim:
To claim this, I am signing this object:
| const errorHandler = (error) => { | |
| if (error.response) { | |
| // error message returned from axios request | |
| return error.response.data; | |
| } else { | |
| // default error message | |
| return error.message; | |
| } | |
| }; |
| const bcrypt = require("bcrypt"); | |
| // Generate a new hashed password from a given string | |
| const generateHashedPassword = async plainPassword => { | |
| return new Promise( async (resolve, reject) => { | |
| try{ | |
| const salt = await bcrypt.genSalt(10); | |
| const hashedPassword = await bcrypt.hash(plainPassword, salt); | |
| resolve(hashedPassword); | |
| } catch(error) { |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| int main() { | |
| int year; | |
| printf("Enter year"); | |
| scanf("%d", &year); | |
| if(year % 4 == 0) { | |
| if(year % 100 == 0) { | |
| if(year % 400 == 0) { | |
| printf("Yes, the year is leap year\n"); | |
| } else { | |
| printf("No, this is not a leap year\n"); |
| SELECT | |
| (case when field not in('value1', 'value2') then 'OUTROS' | |
| when field in('value3') then 'value3' | |
| count(est_des_descricao) as total | |
| FROM | |
| tables | |
| GROUP BY | |
| field DESC |
| /* | |
| ** Check is a given string is a Pangram (https://en.wikipedia.org/wiki/Pangram) | |
| ** @params string | |
| ** @return bool | |
| */ | |
| def is_pangram( str ): | |
| abc = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x' ,'y', 'w', 'z'] | |
| abcClone = list(abc) | |
| str = ''.join(str.split()) | |
| for l in str: |
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `name` varchar(50) NOT NULL, | |
| `name_en` varchar(50) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ; | |
| INSERT INTO `country` (`id`, `name`, `name_en`) VALUES | |
| (1, 'AFEGANISTÃO', 'AFGHANISTAN'), | |
| (2, 'ACROTÍRI E DECELIA', 'AKROTIRI E DEKÉLIA'), |