Skip to content

Instantly share code, notes, and snippets.

View Xion's full-sized avatar

Karol Kuczmarski Xion

View GitHub Profile
#!/bin/sh
curl https://hackage.haskell.org/package/Chart-1.1/docs/Control-Lens-Operators.html | python -c '
import re, sys
for line in sys.stdin.readlines():
m = re.search(r"""class="def">([^<]+)</a> ::""", line)
if m:
print(m.group(1)[1:-1].replace("&lt;", "<").replace("&amp;", "&").replace("&gt;", ">"))
' | sort | uniq | wc -l
@Xion
Xion / count_bevy_plugins.rs
Last active October 18, 2022 18:00
Count installed Bevy plugins
// License: BSD-3
use std::io::{self, Write};
use std::string::FromUtf8Error;
use std::sync::Arc;
use antidote::RwLock;
use bevy::prelude::*;
use bevy::reflect::FromReflect;
use bevy::utils::tracing::{self, Dispatch};
EffectAsset {
name: "particle_swirl",
capacity: 8192,
spawner: Spawner {
num_particles: Single(
64.0,
),
spawn_time: Single(
1.0,
),