Skip to content

Instantly share code, notes, and snippets.

View bananu7's full-sized avatar
🏍️

Bartek Banachewicz bananu7

🏍️
View GitHub Profile
@Bradshaw
Bradshaw / fudge_monkey_draw.lua
Last active January 22, 2018 20:31
The magic of ellipsis in Lua
local old_draw = love.graphics.draw
local monkey_draw = function(im, ...)
if fudge.current and type(im)=="string" then
--Get associate and draw it
local fud = fudge.current:getPiece(im)
old_draw(fud.img, fud.quad, ...)
elseif type(im)=="table" and im.img and im.quad then
old_draw(im.img, im.quad, ...)
elseif type(im)=="table" and im.batch then
old_draw(im.batch)
@nkpart
nkpart / Yolo.hs
Last active September 5, 2018 13:50
{-# LANGUAGE GADTs #-}
module Yolo where
import System.IO.Unsafe
class Yolo f where
yolo :: f a -> a
instance Yolo Maybe where
yolo (Just x) = x
@k-takata
k-takata / bash-completion-slowness-on-msys2.md
Created May 13, 2015 15:08
Bash-completion is very slow on MSYS2

Bash-completion is very slow on MSYS2

Bash-completion is very slow on MSYS2 when the current user is a domain user. This describes the cause and the solutions.

Cause

Expansion of ~* is very slow when you use a domain user. For example: