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
@graphitemaster
graphitemaster / openglbb.md
Created July 6, 2017 19:13
OpenGL Black Bible

OpenGL Black Bible

Author: Dale Weiler

Preface

The following is a writeup of the following things I've independently discovered or been told over the years on how to utilize OpenGL effectively. Not everything in here I gurantee to be factually correct - though several others share similar ideas as present here. Take these are your own peril, like everything else - nothing is absolute; so profile to be sure and check the standards if something here is incorrect. These things presented here I've come to accept as being a safe

@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 12, 2025 06:26
Hyperlinks in Terminal Emulators
@bradwilson
bradwilson / vs2017.ps1
Last active January 23, 2018 19:05
VS 2017 PowerShell script; if you need invoke-cmdscript, it's here: https://gist.github.com/bradwilson/3fca203370d54304eff1cce21ffc32aa
param(
[string]$edition,
[switch]$noWeb = $false
)
# Try and find a version of Visual Studio in the expected location, since the VS150COMNTOOLS environment variable isn't there any more
$basePath = join-path (join-path ${env:ProgramFiles(x86)} "Microsoft Visual Studio") "2017"
if ((test-path $basePath) -eq $false) {
write-warning "Visual Studio 2017 is not installed."
@bradwilson
bradwilson / invoke-cmdscript.ps1
Created March 7, 2017 04:19
Invoke a CMD/BAT script and scrape the environment variable changes
param(
[Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)][string] $Script,
[Parameter(Position=1, Mandatory=$false)][string] $Parameters
)
$tempFile = [IO.Path]::GetTempFileName()
cmd /c " `"$script`" $parameters && set > `"$tempFile`" "
Get-Content $tempFile | %{
@Calinou
Calinou / build_iphone.sh
Last active August 20, 2019 08:33
Compile Godot for iOS easily (from macOS)
#!/bin/sh -x
# This script must be run from a macOS machine with Xcode installed.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
# Number of CPU threads to use for compilation (no "nproc" on macOS...)
nproc=4
@Calinou
Calinou / build_osx.sh
Last active March 7, 2017 20:25
Compile Godot for macOS easily
#!/bin/sh -x
# This script must be run from a macOS system with
# Xcode installed.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
# Number of CPU threads to use for compilation (no "nproc" on macOS...)
nproc=4
@Calinou
Calinou / build_javascript.bat
Last active July 8, 2023 23:22
Compile Godot for HTML5 easily (from Windows)
:: This script must be run from a Windows system with the Emscripten SDK
:: installed and configured. 7-Zip and MinGW also need to be installed.
:: Place this script at the root of your Godot Git clone.
:: CC0 1.0 Universal
set threads=%NUMBER_OF_PROCESSORS%
:: Set MinGW path
set PATH=%PROGRAMFILES%\mingw-w64\x86_64-6.2.0-posix-seh-rt_v5-rev0\mingw64\bin\;%PATH%
@mlocati
mlocati / main.c
Last active January 19, 2024 14:10
Enable/disable/check color support for Windows (ENABLE_VIRTUAL_TERMINAL_PROCESSING flag)
#define _WIN32_WINNT 0x0600
#include <stdio.h>
#include <windows.h>
#include <fileapi.h>
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
@Calinou
Calinou / build_android.bat
Last active September 21, 2018 04:36
Compile Godot for Android easily (on Windows)
:: This script must be run from a Windows machine with
:: Android SDK and NDK installed.
:: NOTE: You need Pywin32 to be installed to use multi-threaded compilation.
:: You may need to set "threads" to 1 for the first build, even if you have it installed.
:: Place this script at the root of your Godot Git clone.
:: CC0 1.0 Universal
set threads=%NUMBER_OF_PROCESSORS%
@Calinou
Calinou / build_javascript.sh
Last active January 9, 2022 18:59
Compile Godot for HTML5 easily
#!/bin/sh -x
# This script must be run from a GNU/Linux system with the Emscripten SDK
# installed and configured.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
export EMSCRIPTEN_ROOT="/opt/emsdk/emscripten/master"