Skip to content

Instantly share code, notes, and snippets.

View Seanny123's full-sized avatar
💭
>.<

Sean Aubin Seanny123

💭
>.<
View GitHub Profile
@Seanny123
Seanny123 / dactyl.json
Created December 3, 2023 17:56
Dactyl Manuform 5x6-6 Via v2 config
{
"name": "Dactyl Manuform (5x6+6)",
"vendorId": "0xFDDD",
"productId": "0x06AD",
"lighting": "none",
"matrix": { "rows": 12, "cols": 6 },
"layouts": {
"keymap": [
[{ "x": 3 }, "0,3", { "x": 8.5 }, "6,2"],
[
@Seanny123
Seanny123 / pyproject.toml
Created June 18, 2021 15:13
Conservative list of Pylint warning to ignore
[tool.pylint.messages_control]
disable = [
"arguments-differ",
"attribute-defined-outside-init",
"bad-continuation",
"blacklisted-name",
"duplicate-code",
"fixme",
"import-error",
"no-member",
@Seanny123
Seanny123 / README.md
Created July 6, 2023 14:33
Pandas example using `explode()`
@Seanny123
Seanny123 / nvidia.sh
Created January 3, 2020 20:08
Dell XPS 15-7590 NVidia Install
sudo dnf install kernel --enablerepo=updates-testing --best --allowerasing
sudo dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo
sudo dnf update
sudo dnf -y remove "nouveau*"
sudo dnf -y install nvidia-driver akmod-nvidia nvidia-driver-cuda
@Seanny123
Seanny123 / search_mup.py
Last active January 15, 2023 20:17
Go through a bunch of exported MindMup .mup files looking for text
"""
Iterates through a directory of exported MindMup .mup files and prints the title of each file that matches the given
regular expression, as well as the matched node contents.
MindMup is a mind mapping tool which represents the Directed Acyclic Graph (DAG) of a mind map as a nested dictionary encoded as JSON.
"""
import argparse
import json
from pathlib import Path
@Seanny123
Seanny123 / fanout.py
Created September 2, 2022 21:45
An example of nested fanout using Ray Workflows.
"""
An example of nested fanout using Ray Workflows.
The full workflow creates several batches given a single input, then each of those batches is fanned-out and evaluated.
"""
import time
import ray
from ray import workflow
@Seanny123
Seanny123 / interactive_log_final.py
Last active January 19, 2022 15:04
EE4208 Laplacian of Gaussian Edge Detector
import math
import numpy as np
import matplotlib.pyplot as plot
import matplotlib.cm as cm
import sys
import pylab
from matplotlib.widgets import Slider
range_inc = lambda start, end: range(start, end+1) #Because this is easier to write and read
@Seanny123
Seanny123 / show_log.py
Created April 11, 2014 09:22
EE4208 plotting the Laplacian of Gaussian mask
import numpy as np
import math
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import sys
import pylab
from matplotlib.widgets import Slider
#from IPython.core import ultratb
#sys.excepthook = ultratb.FormattedTB(mode='Verbose',
# color_scheme='Linux', call_pdb=1)
@Seanny123
Seanny123 / ray_futures.py
Created December 15, 2021 16:59
Example of using concurrent.futures to manage Ray execution
import concurrent.futures
import random
import time
import ray
@ray.remote
def append_a(in_str):
print(in_str)
time.sleep(random.uniform(0, 1.5))
@Seanny123
Seanny123 / better_formatting.py
Created June 18, 2021 15:16
Result of auto-formatting with Black
def hello(name):
return "Hello" + name
name = input("Enter your name: ")
print(hello(name))