Skip to content

Instantly share code, notes, and snippets.

View GlitchedCode's full-sized avatar
🕹️
gaming time

Giuseppe La Malfa GlitchedCode

🕹️
gaming time
View GitHub Profile
@GlitchedCode
GlitchedCode / continuous_lifelike_conv2d.py
Last active April 10, 2023 00:52
"Continuous" Life-Like CA simulation using tf.nn.conv2d
# implements simulation of a set of CA rules containing life-like cellular automata
# by allowing for real-valued states from 0 to 1, and by "filling the gaps" using
# linear interpolation
# inspired by https://github.com/conceptacid/conv2d_life/blob/master/life.py
import tensorflow as tf
import numpy as np
from matplotlib.animation import FFMpegWriter
from matplotlib import pyplot as plt
@GlitchedCode
GlitchedCode / launch.json
Created December 8, 2021 20:34
launch.json file for Godot Mono projects using WAT
{
// VSCode plugins you should use: C#, godot-tools, godot-csharp-vscode
// Install the WAT Mono addon from the godot asset library
"version": "2.0.0",
"configurations": [
{
"name": "Play in Editor",
"type": "godot-mono",
"mode": "playInEditor",
"request": "launch",
# Made by Giuseppe La Malfa
# this script allows you to transfer an FTP directory's contents into an rclone remote
# run with python 3, and make sure you have correctly installed and configured lftp, sed, wget and rclone
# example usage:
# $ python ftp_to_rclone.py "http://archlinux.mirror.garr.it/archlinux/core/os/x86_64/" "test:arch"
# to kill script, press CTRL-C twice
import os
import subprocess
@GlitchedCode
GlitchedCode / .Xresources
Created May 31, 2019 09:01
.Xresources file for my urxvt configuration
! special
*.foreground: #93a1a1
*.background: #002b36
*.cursorColor: #93a1a1
! black
*.color0: #002b36
*.color8: #657b83
! red