Skip to content

Instantly share code, notes, and snippets.

View bpillet's full-sized avatar

Basile Pillet bpillet

View GitHub Profile
@bpillet
bpillet / Chestnut yoghurt cake
Created April 17, 2018 20:48
Chestnut yoghurt cake
# Ingrédients
- 1 yaourt
- 1 pot de farine de chataigne
- 1 pot de farine complète
- 1/2 pot d'huile
- 1/2 pot d'eau tiède
- 2 pots de sucre (dont un de sucre complet)
- 3 oeufs
- 1 sachet de levure chimique
@bpillet
bpillet / beamer listings
Created December 5, 2017 22:49
How to \pause within code blocks in beamer
\documentclass{beamer}
\usepackage{listings}
\usepackage{bera}
\lstset{basicstyle=\small\ttfamily,
numbers=left,
escapeinside=||
}
\begin{document}
@bpillet
bpillet / pgfplot function
Last active September 24, 2017 09:28
Plot function with Tikz and Pgf
% Fonction de base
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
xmin=-12, xmax=16,
ymin=-12, ymax=16,
grid=major,
xtick={-12,-10,...,16},
ytick={-12,-10,...,16}
]
@bpillet
bpillet / trucs.org
Last active June 10, 2017 17:29
Trucs de cuisine

Galettes

  • 500 g de farine de blé noir (plutôt 300 au verre mesureur en mode farine)
  • 13g de (gros) sel
  • 1 oeuf
  • 600 ml d’eau en 2 fois

Crèpes (sans beurre)

  • 500g de farine
  • 1l de lait
  • 150g de sucre
#+TITLE:
#+AUTHOR:
#+DATE:
#+LATEX_CLASS: dip
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_HEADER: \newtheorem{prop}{Proposition}
#+LATEX_HEADER: \newtheorem{cor}{Corollaire}
#+LATEX_HEADER: \newtheorem{lem}{Lemme}
\begin{center}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes, row sep=2em,
column sep=2.5em, text height=1.5ex, text depth=0.25ex]
{ 0 & • & • & • & 0 \\
0 & • & • & • & 0 \\ };
\path[->, font=\scriptsize]
(m-1-1) edge node[auto] {} (m-1-2)
(m-1-2) edge node[auto] {$•$} (m-1-3)
(m-1-3) edge node[auto] {$•$} (m-1-4)
@bpillet
bpillet / CarteSD
Created July 8, 2015 12:17
Activer et désactiver le lecteur de carte SD du MSI Wind
# Activer
sudo modprobe ums_realtek
# Désactiver
sudo rmmod ums_realtek
@bpillet
bpillet / Amsart2columns
Last active August 29, 2015 14:22
Amsart 2columns
\documentclass[a4paper,11pt,draft,makeidx,twocolumn]{amsart}
\usepackage[thm,couleur,draft]{amsdip}
\setlength{\columnsep}{3.5em}
\pagenumbering{gobble}
@bpillet
bpillet / Tikz_square
Created May 21, 2015 12:32
TIKZ commutative square
\begin{center}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes, row sep=2em,
column sep=2.5em, text height=1.5ex, text depth=0.25ex]
{ • & • \\
• & • \\ };
\path[->, font=\scriptsize]
(m-1-1) edge node[auto] {$•$} (m-1-2)
(m-1-1) edge node[auto] {$•$} (m-2-1)
(m-2-1) edge node[auto] {$•$} (m-2-2)