Skip to content

Instantly share code, notes, and snippets.

View colesnicov's full-sized avatar

Colesnicov Denis Petrovich colesnicov

  • Czech Republic, Tachov
View GitHub Profile
@colesnicov
colesnicov / newPager.js
Last active September 25, 2022 18:13
HTML Paginator in pure JS
/*
The MIT License
Copyright 2022 Denis Colesnicov.
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
@colesnicov
colesnicov / queue.js
Created October 11, 2022 20:37
javascript implementation of queue with extended functionality
/*
* The MIT License
*
* Copyright 2022 denis.
*
* 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
@colesnicov
colesnicov / ftoa.c
Last active September 22, 2023 11:25
Float to string conversion for AVR's devices and over embedded MCU's..
/**
* @Licence WTFPL
*/
#include "ftoa.h"
int ftoa(float f, char *p, uint8_t precision)
{
typedef union
@colesnicov
colesnicov / kmstest.c
Created May 14, 2024 12:55 — forked from dvdhrm/kmstest.c
DRM KMS Test
#define EGL_EGLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <errno.h>
#include <gbm.h>
#include <GL/gl.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <stdlib.h>