Skip to content

Instantly share code, notes, and snippets.

View brodeuralexis's full-sized avatar

Alexis Brodeur brodeuralexis

View GitHub Profile
@brodeuralexis
brodeuralexis / kanren.ipynb
Created March 19, 2024 02:04
Simple Kanren Implementation in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brodeuralexis
brodeuralexis / sway-touchpad.py
Last active May 27, 2023 13:16
A Python script for touchpad management using the Sway window manager.
#!/usr/bin/env python3
from __future__ import annotations
import json
import subprocess
import typer
from typing import Any, Generator
app = typer.Typer()
@brodeuralexis
brodeuralexis / wofi.css
Created January 25, 2023 04:39
My CSS styles for Wofi
@define-color background-color #242424;
@define-color text-color #FFFFFF;
@define-color alternate-background-color #1D1D1D;
@define-color alterbate-text-color #FFFFFF;
@define-color accent-color #68217A;
@define-color alternate-accent-color #72517A;
window {
font-family: Roboto;
font-size: 1rem;

Emacs Configuration

Initial Configuration

The first thing on my agenda is to disable any widget graphical user interface modes that are enabled by default, as all of my work will be done using key bindings.

(menu-bar-mode -1)
@brodeuralexis
brodeuralexis / vae.livemd
Created July 21, 2022 02:20
Variational Auto Encoder

Variational Auto Encoder

Mix.install([
  {:axon, "~> 0.1.0"},
  {:exla, "~> 0.2.2"},
  {:nx, "~> 0.2.1"},
  {:scidata, "~> 0.1.6"}
])
@brodeuralexis
brodeuralexis / Resources.zig
Last active January 29, 2022 21:50
Resources.zig
const std = @import("std");
const Allocator = std.mem.Allocator;
const AutoHashMap = std.AutoHashMap;
pub const Resources = struct {
const Self = @This();
const ResourceId = u32;
const ResourceDescriptor = struct {
@brodeuralexis
brodeuralexis / CorrectionLaboratoire01.gs
Created January 12, 2022 03:02
Generate individual rubrics from a spreadsheet
const DEFAULT_TEMPLATE_ID = '1GgOtQ-HE6ospQnQIcJ2bnndQo8ZEaJf9oNf2-BljCcI'
const EQUIPE_NAMED_RANGE = 'EQUIPE'
function onOpen() {
const ui = SpreadsheetApp.getUi()
ui.createMenu('LOG710')
.addItem('Générer les grilles individuelles', 'onGenerateIndividualRubricClick')
.addToUi()
}
@brodeuralexis
brodeuralexis / lua.zig
Last active October 12, 2021 15:06
A collection of snippets to use Lua with the Zig programming language
const std = @import("std");
const c = @import("../c.zig");
const Allocator = std.mem.Allocator;
const alignment = 16;
const buffer_size = 4096;
const exact = .exact;
<code_scheme name="Alexis Brodeur" version="173">
<Objective-C>
<option name="NAMESPACE_BRACE_PLACEMENT" value="2" />
<option name="FUNCTION_BRACE_PLACEMENT" value="2" />
<option name="FUNCTION_NON_TOP_AFTER_RETURN_TYPE_WRAP" value="0" />
<option name="FUNCTION_TOP_AFTER_RETURN_TYPE_WRAP" value="0" />
<option name="FUNCTION_PARAMETERS_WRAP" value="0" />
<option name="FUNCTION_PARAMETERS_NEW_LINE_AFTER_LPAR" value="true" />
<option name="FUNCTION_PARAMETERS_NEW_LINE_BEFORE_RPAR" value="true" />
<option name="STRUCTURED_BINDING_LIST_NEW_LINE_AFTER_LBRACKET" value="true" />
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A controller to handle basic movement input for a player.
/// </summary>
[AddComponentMenu("Movement Controller")]
public class MovementController : MonoBehaviour
{