Skip to content

Instantly share code, notes, and snippets.

View tomas's full-sized avatar

Tomás Pollak tomas

View GitHub Profile
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@randrews
randrews / main.lua
Created August 3, 2012 05:20
A pixelation shader for Love
local shader = love.graphics.newPixelEffect [[
extern vec2 size;
extern number factor;
vec4 effect(vec4 color, Image img, vec2 texture_coords, vec2 pixel_coords){
vec2 tc = floor(texture_coords * size / factor) * factor / size;
return Texel(img, tc);
}
]]
@zero-is-one
zero-is-one / gist:3237735
Created August 2, 2012 15:04
Superfastblur Algorithm for Openframeworks with alpha support
// Super Fast Blur v1.1
// by Mario Klingemann <http://incubator.quasimondo.com>
// converted to C++ by Mehmet Akten, <http://www.memo.tv>
// Add alpha support by Victor Sigma, <http://www.aphes.com>
//
// Tip: Multiple invovations of this filter with a small
// radius will approximate a gaussian blur quite well.
//
void superFastBlur(unsigned char *pix, int w, int h, int radius) {
@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r