Skip to content

Instantly share code, notes, and snippets.

View barbier's full-sized avatar

Gabriel Barbier barbier

View GitHub Profile
import {
NestInterceptor,
ExecutionContext,
Injectable,
CallHandler,
} from '@nestjs/common';
import { classToPlain } from 'class-transformer';
import { map } from 'rxjs/operators';
@Injectable()
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@MOgorodnik
MOgorodnik / bash_meteor
Last active October 18, 2024 20:01
bash: meteor: command not found
From >>https://forums.meteor.com/t/how-to-config-meteor-command-in-git-bash-on-window-7/9703
Q: I can't use meteor command in git bash on window 7
A: $ meteor --version
bash: meteor: command not found
I try to add environment path ->;C:\Users\Rabbit\AppData\Local\.meteor.
But still don't work.
Go to this directory - C:\Users[your username]\AppData\Local\.meteor
@zenorocha
zenorocha / bookshelf.md
Last active May 29, 2021 10:42
My bookshelf
@barneycarroll
barneycarroll / fileInput.css
Last active April 2, 2023 22:21
Total input[type=file] style control with pure CSS. File type inputs are notoriously hard to style, due to different semi-serious style restrictions in the name of security (the argument being that a file input presents access to the user's private file system, and should as such always look unambiguously like what it is — redundant if you ask m…
.fileContainer {
overflow: hidden;
position: relative;
}
.fileContainer [type=file] {
cursor: inherit;
display: block;
font-size: 999px;
filter: alpha(opacity=0);
@vagnerzampieri
vagnerzampieri / .bash_aliases
Last active October 25, 2017 20:18
Alias público, se tiver coisas interessantes, contribua.
function mkcd(){
mkdir $1;
cd $1;
}
# Apt
alias apti='sudo apt-get install'
alias apts='sudo apt-cache search'
alias aptp='sudo apt-get --purge remove'
alias aptr='sudo apt-get remove'