Skip to content

Instantly share code, notes, and snippets.

@wolfenrain
wolfenrain / outline_in.glsl
Created November 10, 2022 22:25
GLSL outline shaders made for Flutter with Umbra
uniform vec2 imageResolution;
uniform float lineThickness;
uniform vec4 lineColor;
uniform sampler2D image;
bool check_bounds(vec4 a, vec4 b, vec4 c, vec4 d, vec4 e, vec4 f, vec4 g, vec4 h) {
if (a.a < 0.5) return true;
if (b.a < 0.5) return true;
if (c.a < 0.5) return true;
if (d.a < 0.5) return true;
@wolfenrain
wolfenrain / create_discord_webhook.dart
Created October 1, 2023 09:18
Dart code to create an application owned webhook in Discord
import 'dart:convert';
import 'dart:io';
final client = HttpClient(context: SecurityContext(withTrustedRoots: true));
Future<Map<String, dynamic>> createDiscordWebhook({
required String channelId,
required String authorization,
required String name,
}) async {