Skip to content

Instantly share code, notes, and snippets.

View sroccaserra's full-sized avatar
🐿️

Sébastien Roccaserra sroccaserra

🐿️
View GitHub Profile
@sroccaserra
sroccaserra / compress_pdf.sh
Last active September 13, 2021 12:08
Opérations sur des fichiers pdf avec ImageMagick et Ghostscript
#!/usr/bin/env bash
# Compress images in a pdf file
# Usage: bash compress.sh pdf_filename
# Requires gs (Ghostscript)
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/screen -dCompatibilityLevel=1.4 -sOutputFile="${1%.*}_small.pdf" "$1"
# -q -dSAFER \
# -dEmbedAllFonts=true \
@sroccaserra
sroccaserra / 2018-06-26 DDD Paris - Domain From the Trenches.md
Last active June 27, 2018 08:38
2018-06-26 DDD Paris - Domain From the Trenches

DDDParis - Domain From the Trenches

2018-06-26

How Different it is when we focus on the business-side?

Meetup organisé par #DDDPARIS

DDD from the beet fields

@sroccaserra
sroccaserra / README.md
Last active November 30, 2020 12:21
Lisp constraints: 100 % s-expressions => recursion +"code is data" => expressivity

Introduction

Fast Backward!

Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot. – http://www.paulgraham.com/avg.html

@sroccaserra
sroccaserra / Test.hs
Last active December 8, 2017 08:14
Dojo
import Test.Hspec
-- ## Prerequisite
--
-- $ brew install ghc
-- $ cabal update
-- $ cabal install hspec
-- ## Running
@sroccaserra
sroccaserra / 2017-06-20_Alistair_in_the_hexagone.md
Last active July 21, 2021 08:17
Alistair in the 'hexagone'

Co-écriture des spécifications par l'exemple

2017-06-16

Mes notes sur la session de Christophe Addinquy à Agile France 2017.

La co-écriture des tests d'acceptation : la compréhension partagée entre les acteurs, lever les ambiguïtés sur ce qu'on fait avec des exemples concrets.

@sroccaserra
sroccaserra / 2017-06-15_Entropie_du_logiciel.md
Last active April 27, 2022 12:15
Entropie du logiciel : dette technique et complexité accidentelle (Agile France 2017)

Entropie du logiciel : dette technique et complexité accidentelle

2017-06-15

Mes notes sur la session de @Lilobase à @AgileFrance 2017.

Voir aussi : les slides de la session.

Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau

@sroccaserra
sroccaserra / LApresMidiDuDDD.md
Last active September 25, 2018 19:37
Mes notes brutes sur l'après-midi du DDD
@sroccaserra
sroccaserra / post.py
Last active March 11, 2017 13:38
Active Record Illustration
from mongoengine import Document, StringField, ReferenceField, CASCADE, EmbeddedDocumentField, ListField
class Post(Document):
title = StringField(max_length=120, required=True)
author = ReferenceField(User, reverse_delete_rule=CASCADE)
tags = ListField(StringField(max_length=30))
comments = ListField(EmbeddedDocumentField(Comment))
meta = {'allow_inheritance': True}
@sroccaserra
sroccaserra / logger_reminder.py
Created March 9, 2017 08:53
Python 3 "logging to file" quick ref
import logging
seb_logger = logging.getLogger('Seb')
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
file_handler = logging.FileHandler('/vagrant/project/Seb.log')
file_handler.setLevel(logging.DEBUG)
file_handler.setFormatter(formatter)
seb_logger.addHandler(file_handler)
seb_logger.setLevel(logging.DEBUG)