Skip to content

Instantly share code, notes, and snippets.

View floriancargoet's full-sized avatar

Florian Cargoët floriancargoet

View GitHub Profile
@floriancargoet
floriancargoet / exemple.ink
Created October 31, 2024 17:07
Relations ink
INCLUDE relations-system.ink
// On a deux relations
LIST Relations = Fait_En, A_Trahi
// On a des matières
LIST Matières = Or, Argent, Fer, Bois, Carton
// Des objets
LIST Objets = Clé, Lance
@floriancargoet
floriancargoet / Emojis.i7x
Created May 2, 2024 07:05
Emojis extension for Inform 7
Emojis (for Glulx only) by Florian Cargoët begins here.
[
I'm a bit conflicted with that code:
I don't remember having a good enough understanding of these things to have written it myself. It's not that complicated so it's possible I learned enough to make it work and then forgot about it but it's also possible I cobbled together bits of code found elsewhere and it's not my code.
]
[ A simple emoji (1 code point). ]
To say emoji (code point - number):
say code point as unicode;
@floriancargoet
floriancargoet / readme.txt
Created April 21, 2024 08:38
Lawnmower (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html

Usage

Copy the code of binksi_import_map.js in the console, then execute:

importMap(url);

Or to select a file on your computer:

Usage

Copy the code of binksi_import_tileset.js in the console, then execute:

importTileset(url);

Or to select a file on your computer:

@floriancargoet
floriancargoet / 000 - Inform 7 recipes.md
Last active September 20, 2021 19:08
Inform 7 recipes

Inform 7 recipes

This a collection of small Inform 7 recipes.

@floriancargoet
floriancargoet / Makefile
Last active May 5, 2017 03:06
Love2D Android Makefile
# Put this Makefile in love-android-sdl2/
# Put your Lua files in love-android-sdl2/assets/game/
src_path := assets/game
src_files := $(wildcard $(src_path)/*)
# do not change
love_file := assets/game.love
apk_file := bin/love-android-debug.apk
# if you change these, update AndroidManifest.xml and source
app_package := org.love2d.android
@floriancargoet
floriancargoet / ellipse.js
Created March 17, 2015 18:41
ctx.ellipse polyfill
var ctx = document.getElementById('c').getContext('2d');
function ellipse(context, cx, cy, rx, ry, rot, aStart, aEnd){
context.save();
context.translate(cx, cy);
context.rotate(rot);
context.translate(-rx, -ry);
context.scale(rx, ry);
context.arc(1, 1, 1, aStart, aEnd, false);
@floriancargoet
floriancargoet / keybase.md
Last active April 5, 2016 21:49
keybase.md

Keybase proof

I hereby claim:

  • I am floriancargoet on github.
  • I am floriancargoet (https://keybase.io/floriancargoet) on keybase.
  • I have a public key ASC6yjGjO1X7rAiK1uueJKX-PhwzWmQdhdxA96vo0YThSQo

To claim this, I am signing this object:

@floriancargoet
floriancargoet / trello-grid
Last active March 5, 2017 03:42
Trello Grid
javascript:(function(){$('.list-area').css('max-width','100%');$('.list').css('margin','10px 0 0 10px');var max = Math.max.apply(null,$('.list').map(function(){return $(this).height();}));$('.list').each(function(){$(this).css('margin-bottom', max - $(this).height())});})();