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 sys | |
import librosa | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import glob | |
def analyze_audio(audio_file): | |
# Charger le fichier audio | |
y, sr = librosa.load(audio_file, sr=None) |
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 sys | |
import librosa | |
import numpy as np | |
def main(audio_file): | |
# Charger le fichier audio | |
y, sr = librosa.load(audio_file, sr=None) | |
# Calculer la transformée de Fourier à court terme (STFT) de l'enregistrement sonore | |
D = np.abs(librosa.stft(y)) |
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
<?php | |
$imgs = glob('*.jpg'); | |
$count = count($imgs); | |
echo "<div><p>Nombre d'images: {$count}</p></div>"; | |
$directory = 'sauve_crop'; | |
foreach ($imgs as $img) { | |
echo "<a href=\"/{$directory}/{$img}\" target=\"_blank\"><img src=\"/{$directory}/{$img}\" title=\"{$img}\"></a>\n"; | |
} |
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
# list uncommented lines, ignoring line returns | |
grep -v -E '^;|^$' /etc/php/8.2/fpm/pool.d/www.conf |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\View; | |
use Illuminate\Support\ServiceProvider; | |
class ViewServiceProvider extends ServiceProvider | |
{ | |
/** |
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
// ==UserScript== | |
// @name PoleEmploiActualisation | |
// @version 1 | |
// @grant GM.getValue | |
// @grant GM.xmlHttpRequest | |
// @match https://actualisationenrichie.pole-emploi.fr/actualisation/declaration/activites | |
// @run-at document-idle | |
// ==/UserScript== | |
const Employeur = 'Monemployeur'; // nom de l'employeur |
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
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
import subprocess | |
import sys | |
import time | |
import paho.mqtt.client as mqtt | |
import os | |
import json | |
import re |
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
# Configure a default setup of Home Assistant (frontend, api, etc) | |
default_config: | |
# Text to speech | |
tts: | |
- platform: google_translate | |
group: !include groups.yaml | |
automation: !include automations.yaml | |
script: !include scripts.yaml |
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
M5 | |
G28; Center ? | |
; | |
; | |
G1 X125 Y100 F3000 | |
; | |
; (square 240x240) | |
G1 X100 Y100 F4000 | |
M03 S3000 |
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
M5 | |
G1 X-125 Y-100 F3000 | |
M03 S3000 | |
(pause) | |
G4 P0.5 | |
(square 240x240) | |
G1 X-125 Y120 F4000 |
NewerOlder