Skip to content

Instantly share code, notes, and snippets.

View floriancargoet's full-sized avatar

Florian Cargoët floriancargoet

View GitHub Profile

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 / 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())});})();
@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 / features.md
Last active December 11, 2015 06:59
Ideas for a PL

Inspiration: Lua, JavaScript, Circa, promises, reactive programming

Base concepts:

  • base object === map (no properties or methods)

    map = {}
    map.toString // null
    
Using 'gist from command line' (http://github.com/defunkt/gist)
I can write/read a gist from command line
echo 'Hello' | gist
gist < myFile
gist 1234 > readThatGist
@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);