Skip to content

Instantly share code, notes, and snippets.

View rdeioris's full-sized avatar

Roberto De Ioris rdeioris

View GitHub Profile
import socket
import sys
import time
import select
import numpy
import struct
HZ = 1.0 / 10
COMMAND_JOIN = 0
import socket
import sys
import time
import numpy
import struct
import select
COMMAND_JOIN = 0
COMMAND_SET_VELOCITY = 1
COMMAND_UPDATE_LOCATION = 2
#include <SDL2/SDL.h>
#include <glad/glad.h>
GLuint compile_shader(GLenum shader_type, const char *filename)
{
SDL_RWops *rw = SDL_RWFromFile(filename, "rb");
if (!rw)
{
SDL_Log("unable to open file");
exit(1);
#include <stdio.h>
int main(int argc, char **argv)
{
int part0 = 0;
int part1 = 0;
int part2 = 0;
int part3 = 0;
asm(
"CPUID\r\n"
#include "aiv_dict.h"
static int hash_pomettini(const char *data, size_t len)
{
int value = 0;
size_t i;
for (i = 0; i < len; i++)
{
value += data[i];
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast2D;
using OpenTK;
namespace FirstModernGame
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Draw;
namespace Filesystem1B
{
class Program
@rdeioris
rdeioris / Program.cs
Created November 26, 2018 16:07
Memory
using System;
using Aiv.Draw;
namespace Memory1B
{
struct Game
{
public int Turns;
public Window Window;
public Card[] Cards;
SECTION "Setup", ROM0[$100]
JP start
SECTION "Main", ROM0[$150]
start:
LD SP, $FFFE
CALL clear_vram
CALL clear_oam
BACKGROUND_COLOR = $5100 ; assign the background color
BACKGROUND_SCROLL_X = $5101
BACKGROUND_SCROLL_Y = $5102
; write to chr rom
CHR_COL = $5103
CHR_ROW = $5104
CHR_PIXEL = $5105
INPUT = $5106