Skip to content

Instantly share code, notes, and snippets.

@ChrisColeTech
ChrisColeTech / python-embedded+tkinter-for-Win10.md
Last active February 15, 2025 15:11 — forked from jtmoon79/python-embedded-for-Win10.md
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@Windows81
Windows81 / extension.bundle.js
Last active April 2, 2025 15:36
Pylance 2024.2.103 is officially compatible with Codium! F*** coPyrights!
/*var getStackTrace = function () {
var obj = {};
Error.captureStackTrace(obj, getStackTrace);
return obj.stack;
};*/
function a0_0x2022(_0xcf00d8, _0x46623d) {
const _0xf90af8 = a0_0xf90a();
return (
(a0_0x2022 = function (_0x2022ef, _0xef2f2) {
@FJakovljevic
FJakovljevic / VS Code Python Profile.md
Last active April 3, 2025 07:09
VS Code Python Profile -- extensions and settings for python in Visual Studio Code
@undeflife
undeflife / unicode.c
Created November 17, 2022 07:29 — forked from tommai78101/unicode.c
UTF-8 to UTF-16 one-way conversion, written in C
#include <stdio.h>
#include <stdlib.h>
#include <uchar.h>
#include <locale.h>
#define __STD_UTF_16__
//Pointer arrays must always include the array size, because pointers do not know about the size of the supposed array size.
void utf8_to_utf16(unsigned char* const utf8_str, int utf8_str_size, char16_t* utf16_str_output, int utf16_str_output_size) {
//First, grab the first byte of the UTF-8 string
@mmozeiko
mmozeiko / !README.md
Last active May 12, 2025 08:58
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.40.33807 and v10.0.26100.0.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active April 16, 2025 01:38
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@FadeMind
FadeMind / fuck_telemetry.cmd
Created August 26, 2020 13:24
Turn Off Telemetry in Windows 10
@echo off
echo.
openfiles > NUL 2>&1
if %errorlevel% NEQ 0 (
echo You are not running as Administrator...
echo This batch cannot do it's job without elevation!
echo.
echo Right-click and select ^'Run as Administrator^' and try again...
echo.
@ChlorUpload
ChlorUpload / main.cpp
Last active October 8, 2024 18:17
A Game loop using PeekMessage function
// Set project as empty windows project.
// A game loop using PeekMessage function.
// Uses double buffering.
#include <Windows.h>
#include <time.h>
#include <math.h>
#pragma comment(lib, "winmm.lib")
@tommai78101
tommai78101 / unicode.c
Last active February 20, 2025 11:42
UTF-8 to UTF-16 one-way conversion, written in C
#include <stdio.h>
#include <stdlib.h>
#include <uchar.h>
#include <locale.h>
#define __STD_UTF_16__
//Pointer arrays must always include the array size, because pointers do not know about the size of the supposed array size.
void utf8_to_utf16(unsigned char* const utf8_str, int utf8_str_size, char16_t* utf16_str_output, int utf16_str_output_size) {
//First, grab the first byte of the UTF-8 string