Skip to content

Instantly share code, notes, and snippets.

View ryonagana's full-sized avatar

Nicholas Oliveira ryonagana

View GitHub Profile
import os
import sys
import base64
from stat import S_ISREG
import itertools
if __name__ == "__main__":
#include <SoftwareServo.h>
//constantes
const int MAX_SERVOS = 2;
const int servoInput[MAX_SERVOS] = { 3,2 };
const int sensorPerto = 500;
const int sensorLonge = 4500;
const int maxLeituraPorSensor = 5;
const int servoPosLonge[MAX_SERVOS] = {0,160 };
@ryonagana
ryonagana / build.zig
Last active April 25, 2025 01:08
Simple Allegro Application Using Zig 0.14.0
const std = @import("std");
const LazyPath = std.Build.LazyPath;
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
@ryonagana
ryonagana / deluxe_pacman_linux_fix.patch
Created December 30, 2025 01:00
Deluxe Pacman Patch For Linux
--- a/a5_screenshot.c
+++ b/a5_screenshot.c
@@ -7,7 +7,7 @@
{
time_t rawtime;
struct tm *timeinfo;
- char filename[80], timestr[80];
+ char filename[80], timestr[25];
bool saved;
ALLEGRO_STATE state;
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>
#include <vector>
#include <array>
#include <unordered_map>
const float PADDLE_SPEED = 300.0f;
const float BALL_SPEED = 300.f;