Skip to content

Instantly share code, notes, and snippets.

View sopyer's full-sized avatar

Mykhailo Parfeniuk sopyer

View GitHub Profile
@sopyer
sopyer / BoltEVUkraine.ipynb
Created January 10, 2022 12:21
New registrations of Bolt EV in Ukraine
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Please install wheezy.template:
# py -3 -m pip install wheezy.template
# Usage:
# py -3 tgen.py -i <template_dir> -o <out_dir> -n <name>
# py -3 tgen.py --options <option file>
# *.template files in template directory are processed as templates, otherwise copied
# map.json file contains renaming rules
import os, json, shutil
@sopyer
sopyer / gist:0a36a78faf181f8fc7c0a02c359dd179
Created April 23, 2020 07:43
Vulkan functions used in run-time with sType and pNext structures
typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence);
typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence);
typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies);
typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo);
typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount