Skip to content

Instantly share code, notes, and snippets.

View 8-BIT-DEV's full-sized avatar
💭
I may be slow to respond.

8-BIT-DEV

💭
I may be slow to respond.
View GitHub Profile
@raysan5
raysan5 / open_source_and_videogames.md
Last active October 11, 2025 17:01
Open Source and Videogames - Resources

open_source_and_videogames

Open Source and Videogames - Resources

This git include a list of programs, tools, engines and libraries free and open source intended to make videogames.

NOTE: This gist is a support material for the talk "Open Source and Videogames" given by me, Ramon Santamaria, on October 26th 2021 in Canòdrom, Barcelona. All the materials listed here were explained in detail in a +2 hours talk.

Contents

import java.util.*;
public class AdditionUnderXOR {
static final int SS = 1000000;
enum Ore {
COAL(60005),
IRON(60006),
@marcotw2
marcotw2 / 3DS_Linux_build_instructions.md
Last active August 28, 2024 21:01 — forked from xerpi/3DS_Linux_build_instructions.md
3DS Linux build instructions
@mirkosertic
mirkosertic / gist:7c1a0b8a98db90982b995219c26750fa
Created November 23, 2017 11:24
WebAssembly call_indirect example
(module
(type $_type (func (param f32) (param f32) (result f32))) ;; we need a signature for the indirect call
(memory 256 256)
(table 128 anyfunc) ;; Table with function pointers
(elem (i32.const 0) $div) ;; function pointer with index 0 points to $div function
(func $div (param $p1 f32) (param $p2 f32) (result f32)
(f32.div
(get_local $p1)
@EarlOfEgo
EarlOfEgo / build-libxm.sh
Last active November 2, 2021 10:13
Shell script to build libxml2 for Android with the NDK. The NDK is stored in /home/USER/Tools/android-ndk-r9/ this has to be adjusted.
export CROSS_COMPILE="arm-linux-androideabi"
export CC="${CROSS_COMPILE}-gcc"
export CXX="${CROSS_COMPILE}-g++"
export NDK="${HOME}/Tools/android-ndk-r9"
export SYSROOT="$NDK/platforms/android-14/arch-arm"
export PATH="$PATH:$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin"
export CPPFLAGS="--sysroot=${SYSROOT}"
export CFLAGS="--sysroot=${SYSROOT} -I."
@kstevens715
kstevens715 / mfcj835dw.sh
Created April 28, 2013 01:31
Script to install an MFC-J835DW printer on a 64-bit instal of Ubuntu 13.04. Should be compatible with earlier versions as well.
#!/usr/bin/env bash
# Step 5b. (for Network Connection) Configure your printer on the cups web interface
# 5b-1. Open a web browser and go to "http://localhost:631/printers".
# 5b-2. Click "Modify Printer" and set following parameters.
#
# - "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" for Device
# - lpd://192.168.1.8/binary_p1 for Device URI
# - Brother for Make/Manufacturer Selection
# - Your printer's name for Model/Driver Selection
@rui314
rui314 / gist:2018964
Created March 12, 2012 00:51
N queen
int print_board(int board[][8]) {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (board[i][j])
printf("Q ");
else
printf(". ");
}
printf("\n");
}