Skip to content

Instantly share code, notes, and snippets.

View ryonagana's full-sized avatar

Nicholas Oliveira ryonagana

View GitHub Profile
@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;
@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(.{});
#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 };
import os
import sys
import base64
from stat import S_ISREG
import itertools
if __name__ == "__main__":
format PE console 4.0
entry start
include 'win32a.inc'
section '.data' data readable writeable
_fmt db "%s",0
num1 dd 0
num2 dd 0
res dd 0
@ryonagana
ryonagana / natal.cpp
Created December 21, 2024 14:41
arvore de natal teste
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_opengl.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_native_dialog.h>
#include <cstdio>
@ryonagana
ryonagana / spaceinvaders.c
Last active November 25, 2021 20:21
Space Invaders
#include <allegro5/allegro.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_native_dialog.h>
#include <stdio.h>
regex usado: ^([?|!])[\s](.+[aA-zZ0-9])[\s](.+[aA-zZ0-9])$
@ryonagana
ryonagana / config.ini
Last active October 28, 2019 14:25
config.ini
[xdebug]
zend_extension=xdebug
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_log="/tmp/xdebug.log"
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.idekey="VSCODE"
#!/usr/bin/python3.7
import os
import sys
import json
import csv
def usage():
print("=======================")
print("gen_tiles.py <file.csv>")
print("=======================")