Skip to content

Instantly share code, notes, and snippets.

View zaucy's full-sized avatar

Ezekiel Warren zaucy

View GitHub Profile
Keyword Description
required The action implementation runs on components marked as required and can read/write to them.
readonly The action implementation can only read data from components marked as readonly. Can only be used with the required.
include The action is run on entities with components marked as include but cannot read or write them.
exclude The action skips entities with components marked as exclude.
Event Type Event Description
Create Entity A new entity has been added to the registry either through execution options or generated by a system/action.
Init Component A new component has been added to an entity through execution options or by a system/action.
Update Component A components value has changed on an entity through execution options or by a system/action.
Remove Component A component has been removed from an entity through execution options or by a system/action
Destroy Entity An entity has been removed from the registry through execution options or by a system/action.
Event Type Event Description
Create Entity A new entity has been added to the registry either through execution options or generated by a system/action.
Init Component A new component has been added to an entity through execution options or by a system/action.
Update Component A components value has changed on an entity through execution options or by a system/action.
Remove Component A component has been removed from an entity through execution options or by a system/action.
Destroy Entity An entity has been removed from the registry through execution options or by a system/action.
@zaucy
zaucy / zaucy-wsl2-ubuntu-setup.sh
Last active January 5, 2024 03:26
Personal wsl2 ubuntu setup
#!/bin/bash
set -e
sudo tee /etc/wsl.conf > /dev/null <<EOF
[interop]
appendWindowsPath = false
EOF
sudo apt-add-repository -y ppa:fish-shell/release-3
[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always
@zaucy
zaucy / SearchableDocumentFragment.js
Last active October 27, 2015 18:14
SearchableDocumentFragment
"use strict";
var createSearchableDocumentFragment = (function() {
var SearchableDocumentFragmentMethods = {
getElementsByTagName(tagName) {
tagName = tagName.toUpperCase();
var elementsWithTagName = [];
@zaucy
zaucy / fa-icons.css
Created June 26, 2015 01:21
Font Awesome CSS Selectors
/* Css selectors generated by the script below for Font Awesome on the web page: http://astronautweb.co/snippet/font-awesome/ */
/*
var cssSrc = "";
var elements = document.querySelectorAll("#font-awesome-list > ul > li");
for(var i=0; elements.length > i; i++) {
var element = elements[i];
cssSrc += ".icon-before." + element.querySelector(".icon-name").textContent + ":before{content:" + element.querySelector(".icon-value").textContent +";}\n";
cssSrc += ".icon-after." + element.querySelector(".icon-name").textContent + ":after{content:" + element.querySelector(".icon-value").textContent +";}\n";
}
*/
--- a/drivers/hid/hid-ids.h 2014-01-19 21:40:07.000000000 -0500
+++ b/drivers/hid/hid-ids.h 2014-04-20 23:29:35.000000000 -0400
@@ -631,6 +631,7 @@
#define USB_DEVICE_ID_MS_NE4K 0x00db
#define USB_DEVICE_ID_MS_NE4K_JP 0x00dc
#define USB_DEVICE_ID_MS_LK6K 0x00f9
+#define USB_DEVICE_ID_MS_TYPE_COVER_3 0x07dc
#define USB_DEVICE_ID_MS_PRESENTER_8K_BT 0x0701
#define USB_DEVICE_ID_MS_PRESENTER_8K_USB 0x0713
#define USB_DEVICE_ID_MS_DIGITAL_MEDIA_3K 0x0730
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#include <vector>
#include <array>
SDL_Renderer* renderer;
std::vector<SDL_Point> points;
std::vector<std::pair<SDL_Point, float>> fadingPoints;
SDL_Point mousePos;
set(SDL2_VERSION "2.0.3")
set(SDL2_SOURCE_DIR "${CMAKE_BINARY_DIR}/SDL2-${SDL2_VERSION}.src")
set(SDL2_BINARY_DIR "${CMAKE_BINARY_DIR}/SDL2-${SDL2_VERSION}.bin")
set(SDL2_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/SDL2-${SDL2_VERSION}")
if(EXISTS "${CMAKE_BINARY_DIR}/SDL2-${SDL2_VERSION}.tar.gz")
else()