Skip to content

Instantly share code, notes, and snippets.

View rafaelcastrocouto's full-sized avatar
🏳️‍🌈
hi!

@racascou rafaelcastrocouto

🏳️‍🌈
hi!
View GitHub Profile
@WhalesState
WhalesState / Godot.md
Last active September 26, 2023 13:19
Welcome file

Introduction

After three years of working with Godot, I wanted to share my feedback and insights on this powerful game development engine. As a dedicated user of Godot, I have experienced both its strengths and areas where improvements could be made. Through this feedback, I hope to contribute to the ongoing development and growth of the Godot community. Let's dive into the details and explore the strengths and areas for improvement in Godot!

By default, Godot's core features and functionalities are bundled together in a single monolithic binary. This can make it challenging for developers to selectively include or exclude specific features based on their project requirements. This lack of modularity can result in larger binary sizes and potential overhead.


3D within 2D and 2D within 3D!

@gaearon
gaearon / Classes.js
Created May 27, 2020 17:38
Beneath Classes: Prototypes
class Spiderman {
lookOut() {
alert('My Spider-Sense is tingling.');
}
}
let miles = new Spiderman();
miles.lookOut();
@slavaceornea
slavaceornea / NewYearChaos.java
Created July 17, 2016 13:05
This java class solves the NewYearChaos problem. Check out code comments for description of problem and solution.
package newyearchaos;
import java.util.Scanner;
/**
*
* @author Slava
*
* It's New Year's Day and everyone's in line for the Wonderland rollercoaster ride!
*
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Math.md
Last active April 15, 2024 20:34
GLSL Math functions

Trigonometry

const float PI = 3.1415926535897932384626433832795;
const float PI_2 = 1.57079632679489661923;
const float PI_4 = 0.785398163397448309616;

float PHI = (1.0+sqrtf(5.0))/2.0;
@balupton
balupton / cors.js
Created September 11, 2012 05:21
Acheiving CORS via a Node HTTP Server
// Create our server
var server;
server = http.createServer(function(req,res){
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Allow-Headers', '*');
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);