Skip to content

Instantly share code, notes, and snippets.

View felipemanga's full-sized avatar

Felipe Manga felipemanga

View GitHub Profile
@felipemanga
felipemanga / src.js
Created July 3, 2020 22:45
Hiragana Flash in PINES
if( file("hiragana.res", 0) != 1 ){
console("Could not find resources!");
} else {
init();
}
const list = [
"a","e","i","o","u","n",
"chi","fu","ha","he","hi","ho",
"ka","ke","ki","ko","ku","ma",
@felipemanga
felipemanga / LibEntity.hpp
Last active January 19, 2021 20:18
Entities
#pragma once
class Entity {
protected:
unsigned char collisionMask = 0, collisionId = 0, priority = 0;
virtual void update(){}
virtual void hit(Entity &other){}
virtual void draw(){}
private:
@felipemanga
felipemanga / ValueFunction.hpp
Last active May 17, 2022 15:45
Call a function in C++ with arguments in a vector
/*
Copyright (c) 2022 Felipe Manga
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@felipemanga
felipemanga / fullauto.cpp
Created August 14, 2022 17:47
A06 Automatic Gearbox
// Compile like this: g++ fullauto.cpp --std=c++17 -o fullauto
// Run like this: sudo fullauto &
#include <thread>
#include <chrono>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
@felipemanga
felipemanga / fullauto.cpp
Last active February 2, 2024 03:36
Improved devterm automatic gearbox
// Compile like this: g++ fullauto.cpp --std=c++17 -o fullauto
// Run like this: sudo fullauto &
#include <thread>
#include <chrono>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>