Skip to content

Instantly share code, notes, and snippets.

View rabbl's full-sized avatar

Ralf Junghanns rabbl

View GitHub Profile
@rabbl
rabbl / build.sh
Created November 24, 2023 08:26 — forked from tifasoftware/build.sh
Building Source Engine for Apple Silicon
#!/bin/zsh
brew install sdl2 freetype2 fontconfig pkg-config opus libpng libedit
cd ~
mkdir ~/Documents/Gaming/
mkdir ~/Documents/Gaming/Half\ Life\ 2
mkdir ~/Documents/Gaming/Half\ Life\ 2\ Episodes
mkdir ~/Documents/Gaming/Portal
@rabbl
rabbl / rotate_2d_point.py
Created November 2, 2023 07:19 — forked from LyleScott/rotate_2d_point.py
Rotate X,Y (2D) coordinates around a point or origin in Python
"""
Lyle Scott, III // lyle@ls3.io
Multiple ways to rotate a 2D point around the origin / a point.
Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362
"""
from __future__ import print_function
import math
<?php
/**
* Recursively takes the specified criteria and adds too the expression.
*
* The criteria is defined in an array notation where each item in the list
* represents a comparison <fieldName, operator, value>. The operator maps to
* comparison methods located in ExpressionBuilder. The key in the array can
* be used to identify grouping of comparisons.
*