Skip to content

Instantly share code, notes, and snippets.

View zergiocosta's full-sized avatar
👽

Sergio Costa zergiocosta

👽
View GitHub Profile
@Nick-Gabe
Nick-Gabe / Pombify.js
Last active January 6, 2024 01:57
Transforma uma string em pombês, e traduz para a língua dos humanos.
const pombify = (phrase) => {
return phrase
.split(' ')
.map((word) => {
const wordLetters = word.split('')
return wordLetters
.map((letter, index) => {
const charCode = letter.charCodeAt(0);
const binary = charCode
.toString(2)
@maml
maml / jest.mock.rn-firebase.js
Created November 1, 2018 21:26
react-native-firebase jest mock
jest.mock('react-native-firebase', () => {
return {
admob: jest.fn(() => {
return {
onNotification: jest.fn(),
onNotificationDisplayed: jest.fn()
}
}),
analytics: jest.fn(() => {
return {
@lillyfreitas
lillyfreitas / custom-error-msgs
Last active May 26, 2020 02:41 — forked from zergiocosta/custom_error_msgs.php
Mensagens de erro de login (wp-admin)
<?php
/*
*
* Plugin Name: Mensagens de erro de login
* Description: Mensagens aleatórios e personalizadas para tentativas fracassadas de login.
* Version: 1.1
* Author: LFreitas based on Sergio Costa (zergiocosta)
* Text Domain: custom-error-msgs
*
* source: https://gist.github.com/zergiocosta/72f87176b236ed0c6e13