A script that takes the svg icons from boostrap and generate a jinja template file with all the icons.
Repository: https://github.com/twbs/icons
| macro_rules! db_id { | |
| ($type: ty,$name:ident) => { | |
| #[derive(Debug, Clone, Copy, PartialEq, Eq, sqlx::Type, Hash)] | |
| #[sqlx(transparent)] | |
| pub struct $name(pub $type); | |
| impl $name { | |
| pub fn new(id: $type) -> Self { | |
| Self(id) | |
| } | |
| } |
| // MIT License | |
| // | |
| // Copyright (c) 2017 Nikolay Govorov | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| pub const std = @import("std"); | |
| pub fn IndexPool(comptime T: type) type { | |
| return struct { | |
| const Self = @This(); | |
| pub const IdRange = struct { | |
| start: T, | |
| end: T, |
| // MIT License | |
| // | |
| // Copyright (c) 2017 Nikolay Govorov | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| [zap-test-app] [2025-07-26 02:58:11] Illegal instruction at address 0x106b13a | |
| [zap-test-app] [2025-07-26 02:58:11] /root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/fio.h:4360:31: 0x106b13a in fiobj_str_write_i (/root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/fiobj/fiobj_str.c) | |
| [zap-test-app] [2025-07-26 02:58:11] /root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/http/http.c:2074:5: 0x1068752 in http_write_log (/root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/http/http.c) | |
| [zap-test-app] [2025-07-26 02:58:11] /root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/http/http_internal.h:110:5: 0x1095a8a in http_s_destroy (/root/.cache/zig/p/zap-0.10.6-GoeB89aDJAAUufiqV7sUCudCoSSCle0E2fbw388bO1Ug/facil.io/lib/facil/http/http1.c) | |
| [zap-test-app] [2025-07-26 02:58:11] /root/.cache/zig/p/zap-0.10.6-GoeB8 |
| use std::{ | |
| convert::Infallible, | |
| fmt::{self}, | |
| future::Future, | |
| pin::Pin, | |
| task::{Context, Poll, ready}, | |
| time::Duration, | |
| }; | |
| use axum::{ |
| {# | |
| The MIT License (MIT) | |
| Copyright (c) 2019-2024 The Bootstrap Authors | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
A script that takes the svg icons from boostrap and generate a jinja template file with all the icons.
Repository: https://github.com/twbs/icons
| // MIT License | |
| // | |
| // Copyright (c) 2017 Nikolay Govorov | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| #include "graphics/RIDescriptorSetAllocator.h" | |
| #include "system/stb_ds.h" | |
| #include <cassert> | |
| struct RIDescriptorSetSlot *AllocDescriptorsetSlot( struct RIDescriptorSetAlloc *alloc ) | |
| { | |
| if( alloc->blocks == NULL || alloc->blockIndex == RESERVE_BLOCK_SIZE ) { | |
| struct RIDescriptorSetSlot *block = (struct RIDescriptorSetSlot*)calloc( RESERVE_BLOCK_SIZE, sizeof( struct RIDescriptorSetSlot ) ); | |
| alloc->blockIndex = 0; | |
| arrpush( alloc->blocks, block ); |