Skip to content

Instantly share code, notes, and snippets.

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

Fabien NerOcrO

🏠
Working from home
View GitHub Profile
@NerOcrO
NerOcrO / tennisGame1.ts
Created April 8, 2021 07:40
solution kata tennis refacto
import { TennisGame } from './TennisGame';
export class TennisGame1 implements TennisGame {
private scoreForPlayer1: number = 0;
private scoreForPlayer2: number = 0;
private player1Name: string;
private player2Name: string;
private score: string = '';
private normalPoints: string[] = [
@NerOcrO
NerOcrO / clean-architecture.md
Last active October 29, 2023 15:28
pragmatic programmer software craftsman clean code tdd clean architecture legacy
@NerOcrO
NerOcrO / occurrence_of_words.sh
Created January 18, 2021 08:39
occurrence words
#!/bin/bash
# sudo apt install poppler-utils
# pdftotext -layout [FILE].pdf [FILE].txt
# ./count_words.sh [FILE].txt
if [ $# -ne 1 ];
then
echo "Usage: $0 filename"
exit -1
@NerOcrO
NerOcrO / compare-screenshot.sh
Last active August 7, 2021 13:06
testcafe screenshot
#!/bin/bash
# sudo apt install imagemagick
git checkout master
yarn qa:test
mv testcafe_screenshots/branch testcafe_screenshots/origin
rm -rf testcafe_screenshots/origin/thumbnails
git checkout -
yarn qa:test
@NerOcrO
NerOcrO / metriques-pro.sh
Last active February 2, 2021 18:08
metriques bash
#!/bin/bash
if [[ -z $1 ]]; then
chemin_de_base=.
else
chemin_de_base=$1
fi
################################################################################
# REPOSITORY #
@NerOcrO
NerOcrO / les-bases.md
Last active November 25, 2020 10:38
bases

Pourquoi ?

  • Ce document est un partie pris
  • Ce document à pour but d'apporter certaines bases à un développeur débutant pour qu'il soit plus efficace et qu'il est plus de temps pour réfléchir à une problématique métier et avoir un temps d'apprentissage
  • Utiliser sa souris ou ne pas savoir certains trucs et astuces prennent quelques secondes et misent bout à bout sur une année peu s'avérer contre productif
  • J'utilise tout le temps ce qui suit, c'est devenu un automatisme

Comment ?

  • Comme toute chose nouvelle, il faut passer par une phase d'apprentissage
@NerOcrO
NerOcrO / a_typescript.md
Last active June 22, 2024 14:08
javascript js typescript
@NerOcrO
NerOcrO / b_react_testing_library.md
Last active December 30, 2024 14:31
vitest rtl test