Skip to content

Instantly share code, notes, and snippets.

@SteveGotthardt
SteveGotthardt / VA-HC32-notes.md
Last active March 3, 2024 00:04
Voxelab Aquila HC32 Klipper
@JohannesDeml
JohannesDeml / README.md
Last active May 17, 2024 23:09
Batch convert images with inkscape on windows

Batch convert svg|pdf|eps|emf|wmf|ai|ps|cdr to eps|pdf|png|jpg|tiff|svg|ps|emf|wmf

Screenshot Batch converter for Windows using Inkscape with the command line
InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)

Usage

  1. Download _InkscapeBatchConvert.bat
  2. Put it in the folder where you have files you wish to convert (will also scan on all subfolders for files of input type).
  3. Then double click the file to start it.
@jhincapie
jhincapie / Util.KeyCodes.cs
Last active June 1, 2024 01:19
Mapping between Windows API virtual keyboard keyCodes and Unity KeyCode enum
using System.Collections.Generic;
using UnityEngine;
namespace Util
{
public class KeyCodes
{
public const int VK_ABNT_C1 = 0xC1;// Abnt C1
public const int VK_ABNT_C2 = 0xC2;// Abnt C2
public const int VK_ADD = 0x6B;// Numpad +
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <PubSubClient.h>
//-------- Customise these values -----------
const char* homeSSID = "BTHub5-72W5";
const char* homePswd = "<homePswd>";
@DashW
DashW / ScreenRecorder.cs
Last active July 21, 2024 13:29
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)