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 librosa | |
import soundfile as sf | |
import os | |
# Define the folder path containing the .wav files | |
folder_path = "/path/to/folder" | |
# Iterate over all .wav files in the folder and subfolders |
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
# Build with `nix-build -E "with import <nixpkgs> {}; callPackage ./sftpgo.nix {}"` | |
{ buildGoModule, fetchFromGitHub }: | |
buildGoModule rec { | |
pname = "sftpgo"; | |
version = "2.2.2"; | |
src = fetchFromGitHub { | |
owner = "drakkan"; | |
repo = "sftpgo"; | |
rev = "v${version}"; |
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
{ pkgs ? import <nixpkgs> { overlays = [ (import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz)) ]; } }: | |
with pkgs; | |
mkShell { | |
nativeBuildInputs = with xorg; [ | |
libxcb | |
libXcursor | |
libXrandr | |
libXi |
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
/// linear-interpolation | |
/// Calculate the definition of a line between two points | |
/// @param $map - A SASS map of viewport widths and size value pairs | |
/// @returns A linear equation as a calc() function | |
/// @example | |
/// font-size: linear-interpolation((320px: 18px, 768px: 26px)); | |
/// @author Jake Wilson <[email protected]> | |
@function linear-interpolation($map) { | |
$keys: map-keys($map); | |
@if (length($keys) != 2) { |
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
/// poly-fluid-sizing | |
/// Generate linear interpolated size values through multiple break points | |
/// @param $property - A string CSS property name | |
/// @param $map - A SASS map of viewport unit and size value pairs | |
/// @requires function linear-interpolation | |
/// @requires function map-sort | |
/// @example | |
/// @include poly-fluid-sizing('font-size', (576px: 22px, 768px: 24px, 992px: 34px)); | |
/// @author Jake Wilson <[email protected]> | |
@mixin poly-fluid-sizing($property, $map) { |
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
{ lib, config, pkgs, ... }: | |
with lib; | |
{ | |
options.v4l2 = mkEnableOption "Enable the confguration to use the reflex as a webcam"; | |
config = mkIf config.v4l2 { | |
# 20.03: v4l2loopback 0.12.5 is required for kernel >= 5.5 | |
# https://github.com/umlaeute/v4l2loopback/issues/257 |
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
%The program for the computation of the PhC photonic | |
%band structure for 2D PhC. | |
%Parameters of the structure are defined by the PhC | |
%period, elements radius, and by the permittivities | |
%of elements and background material. | |
%Input parameters: PhC period, radius of an | |
%element, permittivities | |
%Output data: The band structure of the 2D PhC. | |
clear all; close all; clf; | |
%The variable a defines the period of the structure. |
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
# /etc/NetworkManager/conf.d/30-randomize-mac-address.conf | |
# REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above) | |
# Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/ | |
# This randomize your MAC address for *new* connections | |
# Be sure to change your existing (saved) connections in | |
# /etc/NetworkManager/system-connections/* |
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
% \documentclass[9pt,a4paper,twocolumn,landscape,oneside]{amsart} | |
\documentclass[9pt,a4paper,landscape,oneside]{amsart} | |
\usepackage{amsmath, amsthm, amssymb, amsfonts} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage{booktabs} | |
\usepackage{fancyhdr} | |
\usepackage{float} | |
\usepackage{fullpage} | |
%\usepackage{geometry} |
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 | |
# Déclaration des variables par défaut | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
NewerOlder