This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function say { # Similar to the cli say on Mac | |
pico2wave -l fr-FR -w speech.wav "$@" | |
play speech.wav &> /dev/null | |
rm speech.wav | |
} | |
alias clock='say "Il est $(date +%H) heure $(date +%M)"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import java.awt.*; | |
public class Main extends JFrame { | |
private JLabel label = new JLabel(); | |
public Main() { | |
try { | |
setDefaultCloseOperation(EXIT_ON_CLOSE); | |
setSize(new Dimension(80, 100)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode:Prolog; coding:UTF-8; -*- */ | |
depart(P) :- | |
P = [v, v, v, v, p, v, v, v, p, p, p, v, v, v, v, v, p, v, v, v, v, v, v, p, v, v, v, v, v, v, v, v, v]. | |
arrivee(P) :- | |
P = [v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, p, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v]. | |
conversionLCN(Ligne, Col, Num) :- | |
Ligne >= 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Créer le fichier de conf : ~/.config/redshift.conf avec ce contenu : | |
[redshift] | |
temp-day=5700 | |
temp-night=4000 | |
transition=1 | |
brightness-day=0.9 | |
brightness-night=0.6 |