Skip to content

Instantly share code, notes, and snippets.

View dexfs's full-sized avatar
🎯
Focusing on support my children

André Santos dexfs

🎯
Focusing on support my children
View GitHub Profile

How to facilitate a retrospective

The role of Facilitator is fundamental for almost every meeting. The Facilitator ensures that the whole group is empowered to make decisions and that every individual has their voice heard.

During a retrospective, the Facilitator role is crucial. In a retrospective, it is ideal that everyone has at least some degree of participation, and it is the Facilitator that helps the participants with that.

@jgcmarins
jgcmarins / MyFunctionComponent.test.tsx
Last active May 15, 2019 20:56
Testing functions only called by useEffect
import React from 'react';
import { mount } from 'enzyme';
import formEventEmitter from '../formEventEmitter';
import MyFunctionComponent from '../MyFunctionComponent';
jest.mock('../formEventEmitter');
it('should check if preventCancel is being called', () => {
const dialog = { confirm: jest.fn() };
@Ciantic
Ciantic / example-typeorm-jest.test.ts
Created April 16, 2019 17:50
Example of testing TypeOrm with Jest and Sqlite in-memory database
import { createConnection, getConnection, Entity, getRepository } from "typeorm";
import { PrimaryGeneratedColumn, Column } from "typeorm";
@Entity()
export class MyEntity {
@PrimaryGeneratedColumn()
id?: number;
@Column()
name?: string;

Frontend Masters: React && Firebase (Version 2)

Contact Information

Prequisite Setup

  • A recent version of Node.js
  • npm install -g create-react-app
{"lastUpload":"2019-10-22T22:27:38.860Z","extensionVersion":"v3.4.3"}
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active March 22, 2025 07:22
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
<?php
require 'vendor/autoload.php';
use Telegram\Bot\Api;
error_reporting(E_ALL ^ E_NOTICE);
function getError() {
$ip = '';
if($_SERVER['REMOTE_ADDR']){
// $ip = ", usando o ip {$_SERVER['REMOTE_ADDR']}";

For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:

First method (override Material UI classnames):

1 - Add the property classes in the AppBar component:

    <AppBar classes={{root: 'my-root-class'}}
@Ravaelles
Ravaelles / Ubuntu server setup script (PHP 7.1)
Last active October 19, 2021 20:03
PHP 7.1 + nginx + MongoDB driver for PHP
#!/bin/bash
######################################################
### README ###########################################
######################################################
###
### One-line server install script for Ubuntu.
### Installs Nginx + PHP7.1 + MongoDB for PHP driver.
###
### Removes previous Apache, PHP, nginx installations.
@zabaala
zabaala / BindDatabaseServiceProvider.php
Last active March 2, 2021 07:50
php artisan db:log <start> <stop>
<?php
namespace App\Commands\Database;
use Illuminate\Support\ServiceProvider;
class BindDatabaseServiceProvider extends ServiceProvider
{
public function boot()
{