Skip to content

Instantly share code, notes, and snippets.

View ragnarlodbrok1992's full-sized avatar
🫒
Watermeloning

Ragnar Lodbrok ragnarlodbrok1992

🫒
Watermeloning
  • Gdańsk, Pomerania, Poland
View GitHub Profile
@Trass3r
Trass3r / CMakeLists.txt
Created March 1, 2020 19:16
template for OpenGL with CMake, Conan, glad and glfw
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING "" FORCE)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "")
project(cppgl)
set(CMAKE_CXX_STANDARD 20)
if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
@isc30
isc30 / triangle.cpp
Last active January 28, 2025 12:11 — forked from vittorioromeo/hello_triangle.cpp
SDL2 + WebGL 2.0 = Triangle
#include <iostream>
#include <exception>
#include <functional>
#include <vector>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#ifndef __EMSCRIPTEN__
@jhwheeler
jhwheeler / language-learning-techniques.md
Last active May 7, 2025 12:50
Efficient and effective language learning techniques: Shadowing, Scriptorium, and Side-by-Side Reading.

Language Learning Techniques

Some of the techniques I've used to learn languages quickly and thoroughly:

  1. Shadowing

  2. Scriptorium

  3. Side-by-Side Reading

@vittorioromeo
vittorioromeo / hello_triangle.cpp
Created October 10, 2015 11:07
SDL2 + OpenGL ES 2.0 - "Hello triangle" example that works both on X11 and Emscripten
#include <exception>
#include <functional>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>