Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active November 17, 2024 10:01
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@kzerot
kzerot / sobel.shader
Created March 5, 2019 07:11
Simple sobel edge detection for Godot
shader_type canvas_item;
uniform vec4 edge_color : hint_color = vec4(0.4, 0.4,0.4,1);
uniform vec2 resolution = vec2(800.0,600.0);
void fragment(){
float width = resolution.x;
float height = resolution.y;
float w = 1.0 / width;
float h = 1.0 / height;