Skip to content

Instantly share code, notes, and snippets.

View Lattay's full-sized avatar

Théo Cavignac Lattay

  • Institut des Matériaux Jean Rouxel
  • Nantes, France
View GitHub Profile
@Lattay
Lattay / README.md
Last active January 6, 2023 20:32
Configure luarocks for Neovim at startup (Linux)

When using Lua-based plugins for Neovim, you may need to install some packages with luarocks. To use these packages, the environment variables LUA_PATH and LUA_CPATH needs to contain the luarocks directories. Problem is, Neovim uses LuaJIT which is a Lua 5.1 implementation; however, you may already have your environment setup for a different Lua version, for example the current last version 5.4. To resolve this problem, this gist patches the Lua paths in the startup configuration instead of relying on the environment variables as is default in Neovim.

@Lattay
Lattay / readme.txt
Created May 11, 2021 21:28
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Lattay
Lattay / sort_dune.scm
Last active October 9, 2020 14:44
Quick sorting of dune files (incomplete)
#!/usr/bin/env -S csi -s
; This is a quick and dirty Chicken 5 script
; to help auto format dune config files
; It is incomplete since I did not want to take
; time to handle all stanza cases but it should be a decent
; base for a more complete script.
;
; Distributed under CC-0/Public domain with no guaranty.
@Lattay
Lattay / detect.scm
Created May 6, 2020 14:07
RSR5 Scheme implementation detection (May 2020 version)
;;; Original post http://www.willdonnelly.net/blog/runtime-scheme-detection/
;;; This is an updated version as of May 2020
;;; I updated signatures for most of Scheme and dropped Ikarus (dead project)
;;; I also added chibi-scheme, chez-scheme and replaced mzscheme by racket
;;; DETECT
;;; A set of functions to allow an interpreted Scheme
;;; program to determine the implementation it is
;;; running under.
;; DETECT:SIGNATURE
@Lattay
Lattay / Makefile
Created January 17, 2020 16:18
A makefile to compile Android projects from command line.
# reverse URL parameters
DOMAIN=example
SUB_DOMAIN=helloandroid
# Name
SHORT_PROGNAME=helloandroid
# SDK path for version 29.0.2
SDK_PATH=/opt/android-sdk
BUILD_TOOLS_PATH=$(SDK_PATH)/build-tools/29.0.2
AAPT=$(BUILD_TOOLS_PATH)/aapt