Skip to content

Instantly share code, notes, and snippets.

@corvusdeinanis
corvusdeinanis / readme.md
Created December 9, 2022 20:48
Wikipedia Citation Remover Bookmarklet

Simple javascript bookmarklet to remove numbers and []s from a wikipedia entry to make copying text / reading text from it easier.

  1. Create a new bookmark in your browser
  2. Paste the code given below and save.
  3. Visit the article you want to "clean up".
  4. Click on the bookmarklet.

Voila, it's all cleaned up. Just refresh again and everything is back to normal.

@sabresaurus
sabresaurus / HierarchyEmptyObjectDisplay.cs
Created December 3, 2020 12:20
Shows empty game objects in the hierarchy
// MIT License
//
// Copyright (c) 2020 Sabresaurus
//
// 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:
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active August 30, 2025 03:17
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@pixelsnafu
pixelsnafu / CloudsResources.md
Last active August 3, 2025 18:49
Useful Resources for Rendering Volumetric Clouds

Volumetric Clouds Resources List

  1. A. Schneider, "Real-Time Volumetric Cloudscapes," in GPU Pro 7: Advanced Rendering Techniques, 2016, pp. 97-127. (Follow up presentations here, and here.)

  2. S. Hillaire, "Physically Based Sky, Atmosphere and Cloud Rendering in Frostbite" in Physically Based Shading in Theory and Practice course, SIGGRAPH 2016. [video] [course notes] [scatter integral shadertoy]

  3. [R. Högfeldt, "Convincing Cloud Rendering – An Implementation of Real-Time Dynamic Volumetric Clouds in Frostbite"](https://odr.chalmers.se/hand

using import ..tukan.libc
using import ..tukan.ode
using import ..tukan.sdl
let NUM_CONTACTS = 3
let world = (dWorldCreate)
assert (world != null)
@bessarabov
bessarabov / gist:674ea13c77fc8128f24b5e3f53b7f094
Last active June 18, 2025 14:48
One-liner to generate data shown in post 'At what time of day does famous programmers work?' — https://ivan.bessarabov.com/blog/famous-programmers-work-time
git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
@MattPD
MattPD / analysis.draft.md
Last active August 9, 2025 20:13
Program Analysis Resources (WIP draft)
@beesandbombs
beesandbombs / twistBox.pde
Created November 16, 2018 17:56
twist box
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@Erkaman
Erkaman / three_vids.sh
Created June 8, 2018 07:26
example script, that uses ffmpeg to make a video that shows three videos side by side
# Example video made by this script: https://twitter.com/erkaman2/status/990873258416361472
ffmpeg \
-y \
-i vid1.mp4 \
-i vid2.mp4 \
-i vid3.mp4 \
-filter_complex '[0:v]pad=iw*3:ih[int];[int][1:v]overlay=W*0.33:0[temp];[temp][2:v]overlay=W*0.66:0[vid]' \
-map [vid] \
-c:v libx264 \