Skip to content

Instantly share code, notes, and snippets.

/// Takes a symbolic type constant and returns its size
/// Probably missing a few types but those were the most important
size_t get_sizeof_type(GLenum type)
{
switch(type)
{
case GL_BYTE:
case GL_UNSIGNED_BYTE:
return sizeof(GLbyte);
case GL_SHORT:

EXPOSÉ: La biodiversité des écosystèmes et des espèces

Le Botswana

-> Pays d'Afrique australe sans accès à la mer

Relativement plat, représente un plateau environ 1 km au dessus du niveau de la mer [3]

const fs = require('fs');
const { spawn } = require('child_process');
async function sleep(time) {
return new Promise(resolve => setTimeout(resolve, time));
}
async function main(index_url, concurrent_downloads, output_dir) {
let index = await fetch(index_url, {
method: 'GET',
---
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseCRLF: false
UseTab: AlignWithSpaces
ColumnLimit: 120
---
Language: Cpp
#!/bin/bash
# Distributed with the MIT License (https://mit-license.org/)
# Launches satisfactory and syncs savefiles to S3 storage on exit
# Put this script anywhere you like such as ~/.local/bin/
# Make sure to make it executable with `chmod +x sync_saves.sh`
# You need to create an S3 bucket named satisfactory
# For exemple, you can use https://filebase.com/
#include <SDL2/SDL.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include <pthread.h>
typedef struct {
double real;
double imag;
} complex_t;
@davawen
davawen / config.ini
Created November 5, 2023 21:32
plugins
[plugin]
prefix = plug
comment = List all plugin prefixes
icon = debug-run
exec = exec.sh
type = text
# Copyright (c) 2021 Richard Smith and others
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# licenses when the conditions for such availability set forth in the Eclipse
# Public License, v. 2.0 are satisfied: GNU General Public License, version 2
# with the GNU Classpath Exception which is