Skip to content

Instantly share code, notes, and snippets.

View Calinou's full-sized avatar
🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
View GitHub Profile
@Calinou
Calinou / modern-font-stack.css
Last active October 2, 2018 20:07
Userstyle to enforce a modern font stack on all websites
/* ==UserStyle==
@name Modern Font Stack
@namespace github.com/openstyles/stylus
@version 1.0.0
@license MIT
@description Replaces Segoe UI, Arial and Helvetica Neue with IBM Plex Sans on all websites
@author Calinou
==/UserStyle== */
@-moz-document regexp(".*") {
@Calinou
Calinou / CHANGELOG.md
Last active May 25, 2023 19:07
Godot 4.0 preliminary changelog (does not list changes that were also backported to Godot 3.x)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[4.0] - TBD

Added

@EIREXE
EIREXE / Godot Minimap.md
Last active April 17, 2025 11:48
Automatic minimap generation in godot

Building an automated map/minimap system in Godot

Why?

Our game, ERO-ONE needed a minimap system, it being an open world game made this a necessity, otherwise the player wouldn't really know where he's going.

Of course making a proper minimap is hard, we told ourselves that our game didn't really need it because it's not as big as the open world powerhouse that is Grand Theft Auto, but the real reasons are...

@Calinou
Calinou / render_intro_outro.sh
Created June 4, 2018 21:55
Render intro/outro images for use with the Blender Video Sequence Editor
#!/bin/bash
#
# Renders video intro/outro images; targeted at Blender usage.
# Usage: ./render.sh
#
# Copyright © 2018 Hugo Locurcio
# Licensed under CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/
set -euo pipefail
IFS=$'\n\t'
@Calinou
Calinou / render_texts.sh
Created June 4, 2018 21:54
Render text overlays for use with the Blender Video Sequence Editor
#!/bin/bash
#
# Renders text captions for videos; targeted at Blender usage.
# Usage: ./render.sh
#
# Copyright © 2018 Hugo Locurcio
# Licensed under CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/
set -euo pipefail
IFS=$'\n\t'
@Calinou
Calinou / product.json
Created May 10, 2018 19:47
Code - OSS extension gallery
{
...
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items"
}
}
@Calinou
Calinou / brotli_static.sh
Created April 30, 2018 17:54
Compress static assets to Brotli (usable by nginx's brotli_static module)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR=${1:-}
if [[ "$DIR" == "" ]]; then
echo "Usage: $(basename $0) <path>"
exit 1
@GULPF
GULPF / stats.txt
Created April 28, 2018 22:05
Nim stdlib usage for top 1000 starred GitHub projects
Number of files that imports the module (~15000 files total)
1 oswalkdir
1 rstgen
1 ftpclient
1 distros
1 strmisc
2 rlocks
2 lenientops
2 unidecode
3 httpserver
@Calinou
Calinou / godot_mingw.sh
Last active July 8, 2023 23:17
Compile Godot using MinGW and generate Windows installers using InnoSetup (from Linux)
#!/bin/sh
set -euo pipefail
# Number of CPU threads to use for building
# Use `./godot_mingw.sh <number of threads>` to specify
THREADS=$1
# Godot Git clone path
GODOT_PATH="$HOME/Documents/Git/godotengine/godot"
@Calinou
Calinou / camera.gd
Last active July 12, 2019 05:27
Freelook camera script from my Sponza demo
# Copyright © 2017 Hugo Locurcio and contributors - MIT license
# See LICENSE.md included in the source distribution for more information.
extends Camera
const MOVE_SPEED = 0.5
const MOUSE_SENSITIVITY = 0.002
onready var speed = 1
onready var velocity = Vector3()
onready var initial_rotation = PI/2