This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:meta/meta.dart'; | |
/// Represents a range of [InternetAddress] in a network. | |
/// | |
/// {@template cidr} | |
/// Any instance of [CIDR] is lazy iterable of [InternetAddress] and looping | |
/// over it can take a long time as the range of IPs can be astronomically high. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |