Skip to content

Instantly share code, notes, and snippets.

🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
Block or report user

Report or block Calinou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Calinou
Calinou / scaling.gd
Last active May 10, 2019
[WIP] Automatic hiDPI scaling handling singleton for Godot
View scaling.gd
# Copyright © 2019 Hugo Locurcio and contributors - MIT License
#
# This script implements constant 2D scaling with basic hiDPI display detection.
# This is primarily intended for application GUIs, rather than games.
extends Node
func _ready() -> void:
get_viewport().connect("size_changed", self, "_on_window_size_changed")
_on_window_size_changed()
@Calinou
Calinou / godot-init
Last active Apr 21, 2019
Scripts to initialize and edit a Godot project for quick testing
View godot-init
#!/bin/bash
#
# For Linux and macOS.
# The Godot editor must be in your `PATH` as `godot` for this script to work.
# Licensed under CC0 1.0 Universal.
set -euo pipefail
IFS=$'\n\t'
if [[ ! "${1:-}" || "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
@Calinou
Calinou / update-godot.sh
Created Feb 26, 2019
Update, build and install Godot from source on Linux
View update-godot.sh
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Multiply CPU threads by 1.5 (Bash does not feature floating-point arithmetic)
THREADS="$(($(nproc) * 3/2))"
SCONS_FLAGS=("use_lto=yes" "progress=no" "debug_symbols=no" "LINKFLAGS='-fuse-ld=gold'" "-j$THREADS")
cd "$HOME/Documents/Git/godotengine/godot"
@Calinou
Calinou / kanboard-dark.css
Last active Sep 3, 2019
Dark theme for Kanboard (WIP)
View kanboard-dark.css
/* ==UserStyle==
@name Kanboard Dark
@namespace github.com/openstyles/stylus
@version 0.0.1
@license MIT
@description Dark theme for Kanboard
@author Calinou
==/UserStyle== */
:root {
@Calinou
Calinou / modern-font-stack.css
Last active Oct 2, 2018
Userstyle to enforce a modern font stack on all websites
View modern-font-stack.css
/* ==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 Sep 2, 2019
Godot 3.2 preliminary changelog
View CHANGELOG.md

Changelog

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

The format is based on Keep a Changelog.

[Unreleased] (3.2-dev at commit aa444453b)

Added

@Calinou
Calinou / render_intro_outro.sh
Created Jun 4, 2018
Render intro/outro images for use with the Blender Video Sequence Editor
View render_intro_outro.sh
#!/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 Jun 4, 2018
Render text overlays for use with the Blender Video Sequence Editor
View render_texts.sh
#!/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
Code - OSS extension gallery
View product.json
{
...
"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 Apr 30, 2018
Compress static assets to Brotli (usable by nginx's brotli_static module)
View brotli_static.sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR=${1:-}
if [[ "$DIR" == "" ]]; then
echo "Usage: $(basename $0) <path>"
exit 1
You can’t perform that action at this time.