Skip to content

Instantly share code, notes, and snippets.

View ScripTech's full-sized avatar
🏠
Working from home

Edilson D Mucanze ScripTech

🏠
Working from home
  • Algoritimo Lda
View GitHub Profile
@r3dm1ke
r3dm1ke / Counter.test.jsx
Created January 2, 2020 16:58
Unit test for the Counter component
import React from 'react';
import Counter from './Counter';
import {Provider} from 'react-redux';
import configureStore from 'redux-mock-store';
import {render, cleanup, fireEvent} from 'react-native-testing-library';
afterEach(cleanup);
describe('<Counter />', () => {
// configureStore expects a list of middlewares
@knoonrx
knoonrx / Extenso.php
Last active December 28, 2022 09:33
Converte números e exibe por extenso em php Fonte: http://www.dirceuresende.com/blog/escrevendo-numero-por-extenso-no-php/
<?php
/**
* Created by PhpStorm.
* User: Rodrigo Brandão
* Date: 21/03/2016
* Time: 11:07
*/
class Extenso
{
public static function removerFormatacaoNumero( $strNumero )