Skip to content

Instantly share code, notes, and snippets.

@romkatv
romkatv / instant-zsh.zsh
Last active May 21, 2024 15:11
Make zsh start INSTANTLY with this one weird trick
# Make zsh start INSTANTLY with this one weird trick.
#
# https://asciinema.org/a/274255
#
# HOW TO USE
#
# 1. Download this script.
#
# curl -fsSL -o ~/instant-zsh.zsh https://gist.github.com/romkatv/8b318a610dc302bdbe1487bb1847ad99/raw
#
@SamyBencherif
SamyBencherif / rmpd.c
Created March 3, 2020 20:35
Pixelated 2d lighting with shadows in Raylib, software accelerated
/********************************************************************************************
@filename: rmpd.c
@title: Real Pixel Lighting RAMP DEMO
@description: Simple gradient demo of RPL with shadows
@author: Samy Bencherif
Copyright (C) 2020 Samy Bencherif (@deathstallion)
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
#ifndef RAYNAMES_H
#define RAYNAMES_H
/* raylib.h */
#define vector2_t Vector2
#define vector3_t Vector3
#define vector4_t Vector4
#define matrix_t Matrix
#define color_t Color
@kayomarz
kayomarz / gist:65e0d124f008b222ddf317e9f920c37f
Created August 14, 2023 03:57
Uninstall / Remove all software installed via quicklisp
;;; Start lisp, for example run sbcl.
;;; $ sbcl
;;; First uninstall all systems.
;;; ref: https://github.com/quicklisp/quicklisp-client/issues/147#issuecomment-1631778086
(mapc #'ql:uninstall (mapcar #'ql-dist:short-description (ql-dist:installed-systems t)))
;;; To be able to use slime, we install the slime helper
(ql:quickload "quicklisp-slime-helper")