Skip to content

Instantly share code, notes, and snippets.

@JL2210
JL2210 / SDL2Renderer.c
Created September 22, 2024 23:01
sdl2 test app by @miguelmartin75 with SDL_Renderer instead of OpenGL (and in C)
#include <stdio.h>
#include <SDL.h>
#include <SDL_render.h>
int main(void)
{
// Initialize SDL with video
SDL_Init(SDL_INIT_VIDEO);
@JL2210
JL2210 / SM83.td
Last active July 11, 2023 00:20
TableGen assert
//===-- SM83.td - Target definition file for the Sharp SM83 --*- tablegen -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------------------------------------------------------===//
//
// This is a target description file for the Sharp SM83 architecture, referred
// to here as the "SM83" architecture.
@JL2210
JL2210 / bootstrap.sh
Last active June 27, 2020 13:15
A script to bootstrap Gentoo on a Chromebook
#!/bin/bash
set -e
if [ "${UID}" = "0" ]; then
echo "Error: ${0} must not be run as root.";
exit 3;
fi
TMPDIR="$(mktemp -d)"