Skip to content

Instantly share code, notes, and snippets.

@oldmanauz
oldmanauz / ExmpleSource.cpp
Last active August 21, 2023 13:42 — forked from Lexxicon/ExmpleSource.cpp
Simple Flecs TD
/**
Copyright <2021> <Lexxicon Studios LLC.>
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.
@davidfowl
davidfowl / MinimalAPIs.md
Last active May 1, 2024 20:58
Minimal APIs at a glance
@manigandham
manigandham / rich-text-html-editors.md
Last active May 3, 2024 19:37
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors

@jbenet
jbenet / simple-git-branching-model.md
Last active April 9, 2024 03:31
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@quarnster
quarnster / dreamcast.toolchain.cmake
Created July 28, 2012 07:05
Dreamcast cmake toolchain
# This has been working pretty well for me with:
# export KOS_CFLAGS="-Wa,--isa=sh4 -fomit-frame-pointer"
# export KOS_AFLAGS="--isa=sh4"
# . ${KOS_BASE}/environ_base.sh
# cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/dreamcast.cmake.cmake
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER kos-cc)
set(CMAKE_CXX_COMPILER kos-c++)
set(CMAKE_ASM_COMPILER kos-as)
set(CMAKE_LINKER kos-cc)
@dariodiaz
dariodiaz / behat-ci.sh
Created June 21, 2012 17:55 — forked from jakzal/behat-ci.sh
behat: Runs all Behat scenarios in a Symfony project on CI
#!/bin/sh
# ./bin/behat-ci.sh
project_dir=$(dirname $(readlink -f $0))"/.."
logs_path=${1:-"./build/logs/behat"}
reports_path=${2:-"./build/behat"}
cd $project_dir
@pioz
pioz / autoclick.c
Last active July 10, 2023 15:24
Autoclick
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h> // printf, fprintf and fflush
#include <string.h> // memset
#include <unistd.h> // sleep and usleep
#include <X11/Xlib.h> // X11
#include <X11/Xutil.h> // XGetPixel and XDestroyImage
// Simulate mouse click