Skip to content

Instantly share code, notes, and snippets.

View Duality4Y's full-sized avatar

Robert Duality4Y

  • none
  • Netherlands
  • 13:10 (UTC -12:00)
View GitHub Profile
@Duality4Y
Duality4Y / main.py
Last active January 6, 2018 22:26
Pygame Strange Attractor.
"""
main.py
Author: Robert (Duality)
Git: https://github.com/Duality4y
notes:
this is an implementation of the strange attractor in python.
using pygame to draw it.
details can be found here:
https://en.wikipedia.org/wiki/Lorenz_system
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 27, 2025 20:56
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rdb
rdb / js_linux.py
Last active May 30, 2025 08:09
Access joysticks/game controllers from Python in Linux via the joystick driver. See https://discourse.panda3d.org/t/game-controllers-on-linux-without-pygame/14128
# Released by rdb under the Unlicense (unlicense.org)
# Based on information from:
# https://www.kernel.org/doc/Documentation/input/joystick-api.txt
import os, struct, array
from fcntl import ioctl
# Iterate over the joystick devices.
print('Available devices:')
@jmsaavedra
jmsaavedra / urldecode.ino
Created December 14, 2013 20:08
URL encoded string to character string (for arduino here)
char *in = "!%40%23%24%25%5e%26*()_%2b";
char *out = "000000000000000000000000000000";
void setup(){
Serial.begin(9600);
while(!Serial){
;
}
Serial.println(in);
urldecode2(out,in);