Skip to content

Instantly share code, notes, and snippets.

View Polda18's full-sized avatar

Marek Poláček Polda18

View GitHub Profile
@Polda18
Polda18 / pikimov_export_cs.md
Last active February 19, 2025 21:42
Creating a video asset in Pikimov and exporting it in WebM format with sound effects. Scroll down for English.

Jak na export z Pikimovu do WebM formátu i se zvukem?

Pikimov je velmi užitečný nástroj pro grafické návrháře, který se velmi nápadně podobá svými funkcemi Adobe After Effects. Má však několik omezení. Mezi ty největší patří zejména počet FPS, se kterými lze pracovat, chybějící podpora zvuku, a nelze exportovat video s podporou průhledného pozadí. Tato omezení mohou být frustrující.

Nezbývá než čekat, než tyto funkce autor nástroje doplní. Jenže to může trvat roky, a vám se nejspíš čekat nechce.

@Polda18
Polda18 / endianess.c
Last active October 26, 2024 20:32
Endianess is important to know. This C function will help you with detecting it.
/*******************************************************************
* Sometimes you need to figure out which endianess the machine
* runs on. C on its own doesn't have any form of endianess
* detection. But using unions can actually be useful to detect
* endianess. Sometimes you need to detect endianess to save
* a binary file in a correct format. Because by default
* the machine uses whichever endianess it operates to save files.
* Which makes the files not transferable between machines that
* use differet endianess. Detecting the endianess is crucial
* so you can swap endianess for file saving AND loading if needed.
@Polda18
Polda18 / wordle.jsonc
Last active January 23, 2025 21:42
Complete list of 5-letter words for Wordle
{
"source": "https://www.wordunscrambler.net/word-list/wordle-word-list",
"wordlist": [
// Wordle Words List Starting With A
"aback", "abase", "abate", "abbey", "abbot", "abhor", "abide", "abled", "abode", "abort",
"about", "above", "abuse", "abyss", "acorn", "acrid", "actor", "acute", "adage", "adapt",
"adept", "admin", "admit", "adobe", "adopt", "adore", "adorn", "adult", "affix", "afire",
"afoot", "afoul", "after", "again", "agape", "agate", "agent", "agile", "aging", "aglow",
"agony", "agree", "ahead", "aider", "aisle", "alarm", "album", "alert", "algae", "alibi",
"alien", "align", "alike", "alive", "allay", "alley", "allot", "allow", "alloy", "aloft",
@Polda18
Polda18 / config.yml
Created December 27, 2021 13:12
FastLogin configuration
# FastLogin config
# Project site: https://www.spigotmc.org/resources/fastlogin.14153
# Source code: https://github.com/games647/FastLogin
#
# You can access the newest config here:
# https://github.com/games647/FastLogin/blob/master/core/src/main/resources/config.yml
# Request a premium login without forcing the player to type a command
#
# If you activate autoRegister, this plugin will check/do these points on login:
@Polda18
Polda18 / windows_symlinks.md
Created November 7, 2021 18:32
Windows symbolic links explained
@Polda18
Polda18 / _slovne.md
Last active February 16, 2022 10:14
Slovní vyjádření čísel – demonstrační program

Slovní vyjádření čísel

Tento program je proof of concept. Reálné využití je takřka nulové, jde o to, že program napsaný v C umí vypsat slovně zadané číslo.

Zdrojový kód je přenositelný, lze jej zkompilovat na jakémkoliv operačním systému podporující kompilaci z jazyka C (Windows, Linux, MacOS jakožto 3 hlavní platformy), na hlavních architekturách, jako x86, x86_64, ARM32, ARM64 a MIPS.

Použití

@Polda18
Polda18 / recursive.c
Last active December 2, 2018 12:50
Recursive function example
#include <stdio.h>
#include <stdlib.h>
int factorial(int n);
int main(int argc, char* argv[])
{
if(argc > 1)
{
int number;
@Polda18
Polda18 / os_enviro.h
Created February 7, 2018 06:34
Environment branching
/****************************************
* OS environment branching
****************************************/
#ifndef __OS_ENVIRO_H__
#define __OS_ENVIRO_H__
#if defined(unix) || defined(__unix) || defined(__unix__)
#define UNIX
#elif defined(__APPLE__) || defined(__MACH__)
@Polda18
Polda18 / architectures.h
Created February 7, 2018 06:23
OS environment definitions
/***********************************************
* Architecture environment branching of OS
* Basic structure
***********************************************/
#ifndef __ARCHITECTURES_H__
#define __ARCHITECTURES_H__
#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(_X86_)
#define ENV32
@Polda18
Polda18 / flagbits.h
Last active February 7, 2018 13:18
Complete usage of integer flag bits: edit how you need
/*************************************************************************
* 32bit integer bitwise flags
* Complete definition - by Polda18
*************************************************************************
* You may rename flags as you wish, and use as many as you wish.
* If for some reason you need more than 32 bits, you can expand
* the definition by adding more 32 bits and a switch "L" like that:
* 0x0000000000000000L => That makes the literal long int
*************************************************************************/