repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/block.h | null | null | null | null | null | null | C | 2026-05-04T18:27:38.575505 | #ifndef BLOCK_H
#define BLOCK_H
#include "../util/util.h"
#include "../gfx/blockatlas.h"
#include "../world/blockmesh.h"
#include "../world/light.h"
// Forward declaration
struct World;
#define BLOCK_ID_LAST PINE_LEAVES
enum BlockId {
AIR = 0,
GRASS = 1,
DIRT = 2,
STONE = 3,
SAND = 4,
WATER =... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/clay.c | null | null | null | null | null | null | C | 2026-05-04T18:27:38.577168 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 5, 1 }};
}
void clay_init() {
struct Block clay = BLOCK_DEFAULT;
clay.id = CLAY;
clay.get_texture_location = get_texture_location;
BLOCKS[CLAY] = clay;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | lib/glad/include/KHR/khrplatform.h | null | null | null | null | null | null | C | 2026-05-04T18:27:38.578050 | #ifndef __khrplatform_h_
#define __khrplatform_h_
/*
** Copyright (c) 2008-2018 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, includi... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | lib/noise/noise1234.c | null | null | null | null | null | null | C | 2026-05-04T18:27:38.584405 | // noise1234
//
// Author: Stefan Gustavson, 2003-2005
// Contact: stefan.gustavson@liu.se
//
// This code was GPL licensed until February 2011.
// As the original author of this code, I hereby
// release it into the public domain.
// Please feel free to use it for whatever you want.
// Credit is appreciated where appr... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/cobblestone.c | null | null | null | null | null | null | C | 2026-05-04T18:27:38.602856 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 2, 2 }};
}
void cobblestone_init() {
struct Block cobblestone = BLOCK_DEFAULT;
cobblestone.id = COBBLESTONE;
cobblestone.get_texture_location = get_texture_location;
BLOCKS... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/copper.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.204451 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 5, 0 }};
}
void copper_init() {
struct Block copper = BLOCK_DEFAULT;
copper.id = COPPER;
copper.get_texture_location = get_texture_location;
BLOCKS[COPPER] = copper;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/gravel.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.205577 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 6, 0 }};
}
void gravel_init() {
struct Block gravel = BLOCK_DEFAULT;
gravel.id = GRAVEL;
gravel.get_texture_location = get_texture_location;
BLOCKS[GRAVEL] = gravel;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/glass.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.207140 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 1, 1 }};
}
void glass_init() {
struct Block glass = BLOCK_DEFAULT;
glass.id = GLASS;
glass.transparent = true;
glass.get_texture_location = get_texture_location;
BLOCKS... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/dirt.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.226929 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 2, 0 }};
}
void dirt_init() {
struct Block dirt = BLOCK_DEFAULT;
dirt.id = DIRT;
dirt.get_texture_location = get_texture_location;
BLOCKS[DIRT] = dirt;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/lava.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.231026 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 0, 14 }};
}
static void get_animation_frames(ivec2s out[BLOCK_ATLAS_FRAMES]) {
for (size_t i = 0; i < BLOCK_ATLAS_FRAMES; i++) {
out[i] = (ivec2s) {{ 14, i }};
}
}
static ... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/pineleaves.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.234590 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 6, 3 }};
}
void pine_leaves_init() {
struct Block pine_leaves = BLOCK_DEFAULT;
pine_leaves.id = PINE_LEAVES;
pine_leaves.transparent = true;
pine_leaves.get_texture_locatio... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/pinelog.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.255167 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
switch (d) {
case UP:
case DOWN:
return (ivec2s) {{ 5, 3 }};
default:
return (ivec2s) {{ 4, 3 }};
}
}
void pine_log_init() {
struct Block pine_log = B... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/leaves.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.265667 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 4, 1 }};
}
void leaves_init() {
struct Block leaves = BLOCK_DEFAULT;
leaves.id = LEAVES;
leaves.transparent = true;
leaves.get_texture_location = get_texture_location;
... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/log.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.267217 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
switch (d) {
case UP:
case DOWN:
return (ivec2s) {{ 3, 1 }};
default:
return (ivec2s) {{ 2, 1 }};
}
}
void log_init() {
struct Block log = BLOCK_DEFAU... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/grass.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.311498 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
switch (d) {
case UP:
return GLMS_IVEC2_ZERO;
case DOWN:
return (ivec2s) {{ 2, 0 }};
default:
return (ivec2s) {{ 1, 0 }};
}
}
void grass_init()... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/rose.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.797738 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 0, 3 }};
}
void rose_init() {
struct Block rose = BLOCK_DEFAULT;
rose.id = ROSE;
rose.transparent = true;
rose.solid = false;
rose.mesh_type = BLOCKMESH_SPRITE;
ros... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/podzol.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.807288 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
switch (d) {
case UP:
return (ivec2s) {{ 4, 2 }};
case DOWN:
return (ivec2s) {{ 2, 0 }};
default:
return (ivec2s) {{ 5, 2 }};
}
}
void podzol_i... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/shrub.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.828147 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 3, 3 }};
}
void shrub_init() {
struct Block shrub = BLOCK_DEFAULT;
shrub.id = SHRUB;
shrub.transparent = true;
shrub.solid = false;
shrub.mesh_type = BLOCKMESH_SPRITE;
... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/planks.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.847687 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 6, 1 }};
}
void planks_init() {
struct Block planks = BLOCK_DEFAULT;
planks.id = PLANKS;
planks.get_texture_location = get_texture_location;
BLOCKS[PLANKS] = planks;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/sand.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.888766 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 0, 1 }};
}
void sand_init() {
struct Block sand = BLOCK_DEFAULT;
sand.id = SAND;
sand.get_texture_location = get_texture_location;
BLOCKS[SAND] = sand;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/snow.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.890506 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 3, 2 }};
}
void snow_init() {
struct Block snow = BLOCK_DEFAULT;
snow.id = SNOW;
snow.get_texture_location = get_texture_location;
BLOCKS[SNOW] = snow;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/tallgrass.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.891509 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 2, 3 }};
}
void tallgrass_init() {
struct Block tallgrass = BLOCK_DEFAULT;
tallgrass.id = TALLGRASS;
tallgrass.transparent = true;
tallgrass.solid = false;
tallgrass.me... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/water.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.902184 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 0, 15 }};
}
static void get_animation_frames(ivec2s out[BLOCK_ATLAS_FRAMES]) {
for (size_t i = 0; i < BLOCK_ATLAS_FRAMES; i++) {
out[i] = (ivec2s) {{ i, 15 }};
}
}
void w... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/stone.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.914499 | #include "block.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 3, 0 }};
}
void stone_init() {
struct Block stone = BLOCK_DEFAULT;
stone.id = STONE;
stone.get_texture_location = get_texture_location;
BLOCKS[STONE] = stone;
} |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/block/torch.c | null | null | null | null | null | null | C | 2026-05-04T18:27:39.929499 | #include "block.h"
#include "../world/light.h"
static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) {
if (d == UP) {
return (ivec2s) {{ 1, 2 }};
}
return (ivec2s) {{ 0, 2 }};
}
static Torchlight get_torchlight(struct World *world, ivec3s pos) {
return TORCHLIG... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_blocklook.h | null | null | null | null | null | null | C | 2026-05-04T18:27:40.410886 | #ifndef C_BLOCKLOOK_H
#define C_BLOCKLOOK_H
#include "../util/util.h"
struct BlockLookComponent {
bool hit;
ivec3s pos;
enum Direction face;
f32 radius;
struct {
bool render : 1;
} flags;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_blocklook.c | null | null | null | null | null | null | C | 2026-05-04T18:27:40.412398 | #include "c_blocklook.h"
#include "ecs.h"
#include "../world/world.h"
#include "../state.h"
#include "../gfx/renderer.h"
static bool block_raycast(struct World *world, ivec3s pos) {
struct Block block = BLOCKS[world_get_block(world, pos)];
return block.id != AIR && !block.liquid;
}
static void tick(struct Bl... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_camera.c | null | null | null | null | null | null | C | 2026-05-04T18:27:40.481628 | #include "ecs.h"
#include "c_camera.h"
#include "c_position.h"
static void init(struct CameraComponent *c_camera, struct Entity entity) {
struct PositionComponent *c_position = ecs_get(entity, C_POSITION);
perspective_camera_init(&c_camera->camera, radians(75.0f));
c_camera->camera.position = glms_vec3_add... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_debug.c | null | null | null | null | null | null | C | 2026-05-04T18:27:40.490826 | #include "c_debug.h"
#include "ecs.h"
static void render(struct DebugComponent *c_debug, struct Entity entity) {
}
void c_debug_init(struct ECS *ecs) {
ecs_register(C_DEBUG, struct DebugComponent, ecs, ((union ECSSystem) {
.init = NULL,
.destroy = NULL,
.render = (ECSSubscriber) render,
... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_camera.h | null | null | null | null | null | null | C | 2026-05-04T18:27:40.500932 | #ifndef C_CAMERA_H
#define C_CAMERA_H
#include "ecs.h"
#include "../util/camera.h"
struct CameraComponent {
vec3s offset;
struct PerspectiveCamera camera;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_control.c | null | null | null | null | null | null | C | 2026-05-04T18:27:40.519594 | #include "c_control.h"
#include "../state.h"
#include "../ui/ui.h"
static void update(struct ControlComponent *c_control, struct Entity entity) {
struct CameraComponent *c_camera = ecs_get(entity, C_CAMERA);
c_camera->camera.pitch -= state.window->mouse.delta.y /
(((f32)state.wi... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_light.c | null | null | null | null | null | null | C | 2026-05-04T18:27:40.537433 | #include "c_light.h"
#include "ecs.h"
#include "../world/world.h"
#include "../world/light.h"
static void tick(struct LightComponent *c_light, struct Entity entity) {
struct PositionComponent *c_position = ecs_get(entity, C_POSITION);
bool changed = ivec3scmp(c_position->block, c_light->last.pos) ||
c... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_control.h | null | null | null | null | null | null | C | 2026-05-04T18:27:40.538916 | #ifndef C_CONTROL_H
#define C_CONTROL_H
#include "../util/util.h"
struct ControlComponent {
f32 mouse_sensitivity;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_debug.h | null | null | null | null | null | null | C | 2026-05-04T18:27:40.554734 | #ifndef C_DEBUG_H
#define C_DEBUG_H
#include "../util/util.h"
struct DebugComponent {
bool enabled;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_light.h | null | null | null | null | null | null | C | 2026-05-04T18:27:40.571939 | #ifndef C_LIGHT_H
#define C_LIGHT_H
#include "../util/util.h"
#include "../world/light.h"
struct LightComponent {
Torchlight light;
struct {
ivec3s pos;
Torchlight light;
bool enabled;
} last;
struct {
bool enabled: 1;
} flags;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_movement.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.045348 | #ifndef C_MOVEMENT_H
#define C_MOVEMENT_H
#include "../util/util.h"
#include "ecstypes.h"
struct MovementComponent {
f32 speed;
f32 jump_height;
struct {
bool forward: 1;
bool backward: 1;
bool left: 1;
bool right: 1;
bool up: 1;
bool down: 1;
} directi... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_movement.c | null | null | null | null | null | null | C | 2026-05-04T18:27:41.061297 | #include "c_movement.h"
#include "ecs.h"
#include "../world/world.h"
static void tick(struct MovementComponent *c_movement, struct Entity entity) {
struct CameraComponent *c_camera = ecs_get(entity, C_CAMERA);
struct PositionComponent *c_position = ecs_get(entity, C_POSITION);
struct PhysicsComponent *c_ph... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_position.c | null | null | null | null | null | null | C | 2026-05-04T18:27:41.088506 | #include "c_position.h"
#include "ecs.h"
#include "../world/world.h"
static void tick(struct PositionComponent *c_position, struct Entity entity) {
ivec3s block = world_pos_to_block(c_position->position);
ivec3s offset = world_pos_to_offset(block);
if (ivec3scmp(block, c_position->block)) {
c_posi... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_physics.c | null | null | null | null | null | null | C | 2026-05-04T18:27:41.091369 | #include "c_physics.h"
#include "ecs.h"
#include "../world/world.h"
const f32 MOVEMENT_EPSILON = 0.01f;
const vec3s GRAVITY = (vec3s) {{ 0, -0.0086f, 0 }};
static f32 move_axis(AABB aabb, f32 movement, vec3s axis, AABB *colliders, size_t size) {
vec3s d_v = glms_vec3_scale(axis, movement);
f32 m_sign = sign(... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_physics.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.113905 | #ifndef C_PHYSICS_H
#define C_PHYSICS_H
#include "../util/util.h"
#include "ecstypes.h"
struct PhysicsComponent {
// axes on which velocity has been stopped (there was a collision)
ivec3s stopped;
// current entity velocity
vec3s velocity;
// size AABB should have min (0, 0) and represent the si... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/c_position.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.128753 | #ifndef POSITION_H
#define POSITION_H
#include "../util/util.h"
struct PositionComponent {
vec3s position;
ivec3s block, offset;
bool block_changed, offset_changed;
};
#endif |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/ecs.c | null | null | null | null | null | null | C | 2026-05-04T18:27:41.138776 | #include "ecs.h"
// TODO: real alignment, this is a silly hack
#define ECS_TAG_SIZE 16
#define ECS_TAG(_p) *((ECSTag *) (((void *) (_p)) - ECS_TAG_SIZE))
#define ECS_PTAG(_p) ((ECSTag *) (((void *) (_p)) - ECS_TAG_SIZE))
#define ECSCL_ELEMENT_SIZE(_plist) ((_plist)->component_size + ECS_TAG_SIZE)
#define ECSCL_GET(_pl... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/ecscomponents.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.163496 | #ifndef ECSCOMPONENTS_H
#define ECSCOMPONENTS_H
#include "c_position.h"
#include "c_camera.h"
#include "c_control.h"
#include "c_physics.h"
#include "c_movement.h"
#include "c_blocklook.h"
#include "c_debug.h"
#include "c_light.h"
#define _ECS_DECL_COMPONENT(_name)\
extern void _name##_init();\
_name##_init(e... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/ecs.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.204032 | #ifndef ECS_H
#define ECS_H
#include "../util/util.h"
// forward declarations
struct World;
#define ecs_register(_id, _C, _ecs, _system) _ecs_register_internal((_id), sizeof(_C), (_ecs), (_system))
typedef u64 ECSTag;
#include "ecscomponents.h"
#include "ecstypes.h"
#define ECSEVENT_LAST ECS_TICK
enum ECSEvent {
... |
jdah/minecraft-weekend | https://github.com/jdah/minecraft-weekend | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | src/entity/ecstypes.h | null | null | null | null | null | null | C | 2026-05-04T18:27:41.226997 | #ifndef ECSTYPES_H
#define ECSTYPES_H
#include "../util/util.h"
#define ENTITY_NONE 0
typedef u64 EntityId;
struct Entity {
EntityId id;
u64 index;
struct ECS *ecs;
};
#endif |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base32.c | null | null | null | null | null | null | C | 2026-05-04T18:27:43.806852 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Base32 encoding/decoding (RFC 4648)
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
static const char base32_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
uint8_t* base32_encode(const uint8_t* src, size_t len, size... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base64.c | null | null | null | null | null | null | C | 2026-05-04T18:27:43.807774 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Base64 encoding/decoding (RFC 4648)
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
static const char base64_chars[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
uint8_t* base64_encode(... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/extension.c | null | null | null | null | null | null | C | 2026-05-04T18:27:43.829245 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// SQLite hash and encode/decode functions.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
#include "crypto/base32.h"
#include "crypto/base64.h"
#incl... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/blake3.c | null | null | null | null | null | null | C | 2026-05-04T18:27:43.832754 | // Created by: Peter Tripp (@notpeter), Public Domain
// blake3 reference implementation, Public Domain
// https://github.com/oconnor663/blake3_reference_impl_c
#include <assert.h>
#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include "crypto/blake3.h"
#define CHUNK_START 1 << 0
#define CHUNK_END 1 <<... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base85.c | null | null | null | null | null | null | C | 2026-05-04T18:27:43.851352 | // Originally by Fränz Friederes, MIT License
// https://github.com/cryptii/cryptii/blob/main/src/Encoder/Ascii85.js
// Modified by Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean/
// Base85 (Ascii85) encoding/decoding
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
u... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base64.h | null | null | null | null | null | null | C | 2026-05-04T18:27:43.852862 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Base64 encoding/decoding (RFC 4648)
#ifndef BASE64_H
#define BASE64_H
#include <stddef.h>
#include <stdint.h>
uint8_t* base64_encode(const uint8_t* src, size_t len, size_t* out_len);
uint8_t* base64_decode(const uint8_t* src, ... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/blake3.h | null | null | null | null | null | null | C | 2026-05-04T18:27:43.856569 | // Created by: Peter Tripp (@notpeter), Public Domain
// blake3 reference implementation, Public Domain
// https://github.com/oconnor663/blake3_reference_impl_c
#ifndef __BLAKE3_H__
#define __BLAKE3_H__
#include <stddef.h>
#include <stdint.h>
#define BLAKE3_OUT_LEN 32
#define BLAKE3_KEY_LEN 32
#define BLAKE3_BLOCK_L... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/extension.h | null | null | null | null | null | null | C | 2026-05-04T18:27:43.866034 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// SQLite hash and encode/decode functions.
#ifndef CRYPTO_EXTENSION_H
#define CRYPTO_EXTENSION_H
#include "sqlite3ext.h"
int crypto_init(sqlite3* db);
#endif /* CRYPTO_EXTENSION_H */
|
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base85.h | null | null | null | null | null | null | C | 2026-05-04T18:27:43.888814 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Base85 (Ascii85) encoding/decoding
#ifndef _BASE85_H_
#define _BASE85_H_
#include <stddef.h>
#include <stdint.h>
uint8_t* base85_encode(const uint8_t* src, size_t len, size_t* out_len);
uint8_t* base85_decode(const uint8_t* sr... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/base32.h | null | null | null | null | null | null | C | 2026-05-04T18:27:43.918642 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Base32 encoding/decoding (RFC 4648)
#ifndef _BASE32_H_
#define _BASE32_H_
#include <stdint.h>
uint8_t* base32_encode(const uint8_t* src, size_t len, size_t* out_len);
uint8_t* base32_decode(const uint8_t* src, size_t len, size... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/hex.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.371312 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Hex encoding/decoding
#ifndef _HEX_H_
#define _HEX_H_
#include <stddef.h>
#include <stdint.h>
uint8_t* hex_encode(const uint8_t* src, size_t len, size_t* out_len);
uint8_t* hex_decode(const uint8_t* src, size_t len, size_t* ou... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/hex.c | null | null | null | null | null | null | C | 2026-05-04T18:27:44.406650 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Hex encoding/decoding
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
uint8_t* hex_encode(const uint8_t* src, size_t len, size_t* out_len) {
*out_len = len * 2;
uint8_t* encoded = malloc(*... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/sha1.c | null | null | null | null | null | null | C | 2026-05-04T18:27:44.459402 | // Originally from the sha1 SQLite exension, Public Domain
// https://sqlite.org/src/file/ext/misc/sha1.c
// Modified by Anton Zhiyanov, https://github.com/nalgeon/sqlean/, MIT License
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "crypto/sha1.h"
#define SHA_ROT(x, l, r) ((... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/sha1.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.476928 | // Adapted from https://sqlite.org/src/file/ext/misc/sha1.c
// Public domain
#ifndef __SHA1_H__
#define __SHA1_H__
#include <stddef.h>
#define SHA1_BLOCK_SIZE 20
typedef struct SHA1Context {
unsigned int state[5];
unsigned int count[2];
unsigned char buffer[64];
} SHA1Context;
void* sha1_init();
void s... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/sha2.c | null | null | null | null | null | null | C | 2026-05-04T18:27:44.478900 | /*
* FIPS 180-2 SHA-224/256/384/512 implementation
*
* Copyright (C) 2005-2023 Olivier Gay <olivier.gay@a3.epfl.ch>
* https://github.com/ogay/sha2, BSD 3-Clause License
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/md5.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.480332 | /*********************************************************************
* Filename: md5.h
* Author: Brad Conte (brad AT bradconte.com)
* Source: https://github.com/B-Con/crypto-algorithms
* License: Public Domain
* Details: Defines the API for the corresponding MD5 implementation.
*****************... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/sha2.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.552775 | /*
* FIPS 180-2 SHA-224/256/384/512 implementation
*
* Copyright (C) 2005-2023 Olivier Gay <olivier.gay@a3.epfl.ch>
* https://github.com/ogay/sha2, BSD 3-Clause License
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/url.c | null | null | null | null | null | null | C | 2026-05-04T18:27:44.554609 | // Originally by Fränz Friederes, MIT License
// https://github.com/cryptii/cryptii/blob/main/src/Encoder/URL.js
// Modified by Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean/
// URL-escape encoding/decoding
#include <ctype.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <st... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/md5.c | null | null | null | null | null | null | C | 2026-05-04T18:27:44.555407 | /*********************************************************************
* Filename: md5.c
* Author: Brad Conte (brad AT bradconte.com)
* Source: https://github.com/B-Con/crypto-algorithms
* License: Public Domain
* Details: Implementation of the MD5 hashing algorithm.
* Algorithm specification can ... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/url.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.556456 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// URL-escape encoding/decoding
#ifndef _URL_H_
#define _URL_H_
#include <stddef.h>
#include <stdint.h>
uint8_t* url_encode(const uint8_t* src, size_t len, size_t* out_len);
uint8_t* url_decode(const uint8_t* src, size_t len, siz... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/xxhash.h | null | null | null | null | null | null | C | 2026-05-04T18:27:44.999402 | // Copyright (c) 2025 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
#ifndef __XXHASH_H__
#define __XXHASH_H__
#include <stddef.h>
#include <stdint.h>
#include "crypto/xxhash.impl.h"
void* xxh32_init();
void xxh32_update(XXH32_state_t* ctx, const void* data, size_t len);
int xxh32_final(XXH32_stat... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/crypto/xxhash.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.023070 | // Copyright (c) 2025 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#define XXH_STATIC_LINKING_ONLY
#define XXH_IMPLEMENTATION
#include "crypto/xxhash.h"
#include "crypto/xxhash.impl.h"
#define XXH32_DIGEST_LENGTH 4
#define XXH64_DIGEST_L... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/define.h | null | null | null | null | null | null | C | 2026-05-04T18:27:45.049560 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// User-defined functions in SQLite.
#ifndef DEFINE_INTERNAL_H
#define DEFINE_INTERNAL_H
#include "sqlite3ext.h"
int define_save_function(sqlite3* db, const char* name, const char* type, const char* body);
int define_eval_init(s... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/eval.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.097147 | // Created by by D. Richard Hipp, Public Domain
// https://www.sqlite.org/src/file/ext/misc/eval.c
// Modified by Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean/
// Evaluate dynamic SQL.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
/*
... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/extension.h | null | null | null | null | null | null | C | 2026-05-04T18:27:45.113004 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// User-defined functions in SQLite.
#ifndef DEFINE_EXTENSION_H
#define DEFINE_EXTENSION_H
#include "sqlite3ext.h"
int define_init(sqlite3* db);
#endif /* DEFINE_EXTENSION_H */
|
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/extension.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.114507 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// User-defined functions in SQLite.
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
#include "define/define.h"
int define_init(sqlite3* db) {
int status = define_manage_init(db);
define_eval_init(db);
define_module_in... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fileio/extension.h | null | null | null | null | null | null | C | 2026-05-04T18:27:45.201645 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Read and write files in SQLite.
#ifndef FILEIO_EXTENSION_H
#define FILEIO_EXTENSION_H
#include "sqlite3ext.h"
int fileio_init(sqlite3* db);
#endif /* FILEIO_EXTENSION_H */
|
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/module.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.203891 | // Created by 0x09, Public Domain
// https://github.com/0x09/sqlite-statement-vtab/blob/master/statement_vtab.c
// Modified by Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean/
// Define table-valued functions.
#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <s... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/define/manage.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.209942 | // Copyright (c) 2022 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Manage defined functions.
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
#define DEFINE_CACHE 2
#pragma region statement cache
typedef struct cache_node {
sqlit... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fileio/extension.c | null | null | null | null | null | null | C | 2026-05-04T18:27:45.220978 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Read and write files in SQLite.
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
#include "fileio/fileio.h"
int fileio_init(sqlite3* db) {
fileio_scalar_init(db);
fileio_ls_init(db);
fileio_scan_init(db);
return ... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/extension.c | null | null | null | null | null | null | C | 2026-05-04T18:27:46.117585 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Fuzzy string matching and phonetics.
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT3
#include "fuzzy/fuzzy.h"
// is_ascii checks if the string consists of ASCII symb... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fileio/legacy.c | null | null | null | null | null | null | C | 2026-05-04T18:27:46.684221 | // Originally by D. Richard Hipp, Public Domain
// https://www.sqlite.org/src/file/ext/misc/fileio.c
// Modified by Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean/
/*
* This SQLite extension implements SQL functions
* for reading, writing and listing files and folders.
*
*
* Notes on building t... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/caver.c | null | null | null | null | null | null | C | 2026-05-04T18:27:46.716192 | // Copyright (c) 2021 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Caverphone phonetic coding algorithm.
// https://en.wikipedia.org/wiki/Caverphone
#include <assert.h>
#include <stdlib.h>
#include <string.h>
// remove_non_letters deletes everything from the source string,
// except lowercased... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/fuzzy.h | null | null | null | null | null | null | C | 2026-05-04T18:27:46.748600 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#ifndef FUZZY_H
#define FUZZY_H
// distance metrics
unsigned damerau_levenshtein(const char*, const char*);
int hamming(const char*, const char*);
double jaro(const char*, const char*);
double jaro_winkler(const char*, const char*... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fileio/fileio.h | null | null | null | null | null | null | C | 2026-05-04T18:27:46.773689 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Read and write files in SQLite.
#ifndef FILEIO_INTERNAL_H
#define FILEIO_INTERNAL_H
#include "sqlite3ext.h"
int fileio_ls_init(sqlite3* db);
int fileio_scalar_init(sqlite3* db);
int fileio_scan_init(sqlite3* db);
#endif /* FI... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fileio/scan.c | null | null | null | null | null | null | C | 2026-05-04T18:27:46.775023 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// scanfile(name)
// Reads a file with the specified name line by line.
// Implemented as a table-valued function.
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/hamming.c | null | null | null | null | null | null | C | 2026-05-04T18:27:47.293686 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include "fuzzy/common.h"
/// Computes and returns the hamming distance between two strings. Both strings
/// must have the same length and not be NULL. More information... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/jarowin.c | null | null | null | null | null | null | C | 2026-05-04T18:27:47.384680 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Calculates and returns the Jaro distance of two non NULL strings.
/// More information about the algorithm can be foun... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/osadist.c | null | null | null | null | null | null | C | 2026-05-04T18:27:47.390841 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Computes and returns the Optimal String Alignment distance for two non NULL
/// strings. More information about the algorithm can be found ... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/leven.c | null | null | null | null | null | null | C | 2026-05-04T18:27:47.391362 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Calculates and returns the Levenshtein distance of two non NULL strings.
/// More information about the algorithm can be found here:
/// ... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/phonetic.c | null | null | null | null | null | null | C | 2026-05-04T18:27:47.490387 | // Ooriginally from the spellfix SQLite exension, Public Domain
// https://www.sqlite.org/src/file/ext/misc/spellfix.c
// Modified by Anton Zhiyanov, https://github.com/nalgeon/sqlean/, MIT License
#include <assert.h>
#include <stdlib.h>
#include "fuzzy/common.h"
extern const unsigned char midClass[];
extern const u... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/rsoundex.c | null | null | null | null | null | null | C | 2026-05-04T18:27:48.165063 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Helper function that returns the numeric code for a given char as specified
/// by the refined soundex algorithm.
///
//... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/soundex.c | null | null | null | null | null | null | C | 2026-05-04T18:27:48.165610 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Helper function that returns the numeric code for a given char as specified
/// by the soundex algorithm.
///
/// @param... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/ipaddr/extension.c | null | null | null | null | null | null | C | 2026-05-04T18:27:48.166334 | // Copyright (c) 2021 Vincent Bernat, MIT License
// https://github.com/nalgeon/sqlean
// IP address manipulation in SQLite.
#ifdef __MINGW32__
#include <ws2tcpip.h>
#else
#include <arpa/inet.h>
#endif
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdli... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/translit.c | null | null | null | null | null | null | C | 2026-05-04T18:27:48.167210 | // Originally from the spellfix SQLite exension, Public Domain
// https://www.sqlite.org/src/file/ext/misc/spellfix.c
// Modified by Anton Zhiyanov, https://github.com/nalgeon/sqlean/, MIT License
#include <stdlib.h>
#include "fuzzy/common.h"
extern const unsigned char midClass[];
extern const unsigned char initClas... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/common.h | null | null | null | null | null | null | C | 2026-05-04T18:27:51.168506 | // Adapted from the spellfix SQLite exension, Public Domain
// https://www.sqlite.org/src/file/ext/misc/spellfix.c
#ifndef COMMON_H
#define COMMON_H
/*
** Character classes for ASCII characters:
**
** 0 '' Silent letters: H W
** 1 'A' Any vowel: A E I O U (Y)
** 2 'B' A bilabeal sto... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/common.c | null | null | null | null | null | null | C | 2026-05-04T18:27:51.193179 | // Originally from the spellfix SQLite exension, Public Domain
// https://www.sqlite.org/src/file/ext/misc/spellfix.c
// Modified by Anton Zhiyanov, https://github.com/nalgeon/sqlean/, MIT License
#include "fuzzy/common.h"
/*
** The following table gives the character class for non-initial ASCII
** characters.
*/
con... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/damlev.c | null | null | null | null | null | null | C | 2026-05-04T18:27:51.230256 | // Copyright (c) 2014 Ross Bayer, MIT License
// https://github.com/Rostepher/libstrcmp
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "fuzzy/common.h"
/// Calculates and returns the Damerau-Levenshtein distance of two non NULL
/// strings. More information about the algorithm can be found here... |
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/extension.h | null | null | null | null | null | null | C | 2026-05-04T18:27:51.231556 | // Copyright (c) 2023 Anton Zhiyanov, MIT License
// https://github.com/nalgeon/sqlean
// Fuzzy string matching and phonetics.
#ifndef FUZZY_EXTENSION_H
#define FUZZY_EXTENSION_H
#include "sqlite3ext.h"
int fuzzy_init(sqlite3* db);
#endif /* FUZZY_EXTENSION_H */
|
nalgeon/sqlean | https://github.com/nalgeon/sqlean | null | null | null | null | 4,316 | null | null | mit | null | null | null | null | null | null | null | src/fuzzy/editdist.c | null | null | null | null | null | null | C | 2026-05-04T18:27:51.232069 | // Originally from the spellfix SQLite exension, Public Domain
// https://www.sqlite.org/src/file/ext/misc/spellfix.c
// Modified by Anton Zhiyanov, https://github.com/nalgeon/sqlean/, MIT License
#include <assert.h>
#include <stdlib.h>
#include "fuzzy/common.h"
extern const unsigned char midClass[];
extern const un... |
lc-soft/LCUI | https://github.com/lc-soft/LCUI | null | null | null | null | 4,313 | null | null | mit | null | null | null | null | null | null | null | examples/fabric/src/main.c | null | null | null | null | null | null | C | 2026-05-04T18:27:54.482719 | #include <LCUI.h>
#include <LCUI/main.h>
#ifdef HAS_CAIRO
#include <cairo.h>
#endif
#include "fabric.h"
#define M_PI 3.1415926
#define FABRIC_WIDTH 800
#define FABRIC_HEIGHT 600
typedef struct ui_fabric {
int timer;
} ui_fabric_t;
bool displayPoints = false;
bool displaySpans = true;
ui_widget_prototype_t *... |
lc-soft/LCUI | https://github.com/lc-soft/LCUI | null | null | null | null | 4,313 | null | null | mit | null | null | null | null | null | null | null | examples/fabric/src/fabric.h | null | null | null | null | null | null | C | 2026-05-04T18:27:54.483266 | #include <stdbool.h>
typedef struct PointRec_ {
double cx;
double cy;
double px;
double py;
bool pinned;
bool grabbed;
double mxd;
double myd;
int id;
} PointRec, *Point;
typedef struct SpanRec_ {
Point p1;
Point p2;
doubl... |
lc-soft/LCUI | https://github.com/lc-soft/LCUI | null | null | null | null | 4,313 | null | null | mit | null | null | null | null | null | null | null | include/LCUI/app.h | null | null | null | null | null | null | C | 2026-05-04T18:27:54.488475 | /*
* include/LCUI/app.h
*
* Copyright (c) 2023-2025, Liu Chao <i@lc-soft.io> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found in the
* LICENSE.TXT file in the root directory of this source tree.
*/
#ifndef LCUI_INCLUDE_LCUI_APP_H
#de... |
lc-soft/LCUI | https://github.com/lc-soft/LCUI | null | null | null | null | 4,313 | null | null | mit | null | null | null | null | null | null | null | examples/fabric/src/fabric.c | null | null | null | null | null | null | C | 2026-05-04T18:27:54.553865 |
////////////////////////////////////////////////
//////////// DELICATE FABRIC ///////////
////////////////////////////////////////////////
// Fork from: https://codepen.io/matthewmain/pen/oyyadr
#include <stddef.h>
#include <time.h>
#include <stdlib.h>
#include <math.h>
#include "fabric.h"
double canvasWid... |
lc-soft/LCUI | https://github.com/lc-soft/LCUI | null | null | null | null | 4,313 | null | null | mit | null | null | null | null | null | null | null | include/LCUI/common.h | null | null | null | null | null | null | C | 2026-05-04T18:27:54.558144 | /*
* include/LCUI/common.h
*
* Copyright (c) 2023-2025, Liu Chao <i@lc-soft.io> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found in the
* LICENSE.TXT file in the root directory of this source tree.
*/
#ifndef LCUI_INCLUDE_LCUI_COMMON... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.