Skip to content

Instantly share code, notes, and snippets.

@chillpert
chillpert / vim-unreal.md
Last active February 23, 2025 18:53
Debugging and autocompletion for Unreal Engine 4 and 5 projects in (Neo)vim

Debugging and autocompletion for Unreal Engine 4 and 5 projects in (Neo)Vim

+++ Updated for UE 5.1 (see bottom)

Autocompletion

For autocompletion there are two options:

  1. coc (Vim, Neovim)
  2. LSP (Neovim only)
@Kolenov
Kolenov / README.md
Created October 18, 2020 22:52 — forked from ascendbruce/README.md
Use mac style shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that

  1. You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys because it conflicts with cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line)
  2. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
@trentpolack
trentpolack / EnumerationType.h
Last active September 23, 2024 12:16
Enumerations in Unreal Engine 4
// Generally, developers in UE4 tend towards the following convention for enumerations:
UENUM( BlueprintType )
enum class ENoiseGeneratorCellularType : uint8
{
NGCT_Natural UMETA( DisplayName = "Natural" ),
NGCT_Euclidean UMETA( DisplayName = "Euclidean" ),
NGCT_Manhattan UMETA( DisplayName = "Manhattan" ),
NGCT_Max UMETA( Hidden )
};
@OliverJAsh
OliverJAsh / foo.ts
Last active January 27, 2025 18:24
Records and dictionaries in TypeScript
/*
In JavaScript, objects can be used to serve various purposes.
To maximise our usage of the type system, we should assign different types to our objects depending
on the desired purpose.
In this blog post I will clarify two common purposes for objects known as records and dictionaries
(aka maps), and how they can both be used with regards to the type system.
@Squareys
Squareys / .ycm_extra_conf.py
Created October 20, 2017 11:00
YCM Configuration for UE4
#
# YCM configuration for Unreal Engine 4 projects
#
# Parses a generated Visual Studio project file and extracts its
# include dirs and symbols to be passed on to ycm/libclang.
#
# Note: For me this worked only on some files, but crashed ycm on others
# (using YCM with libclang-3.9.?, if I remember correctly...). May work
# better with newer versions?
#
@ascendbruce
ascendbruce / README.md
Last active April 6, 2025 21:57
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

#/g/sicp Gentoomen Programming, Computer Science, Wizardry, and General Technology Book Library - File Listing
(λ . Gentoomen Library
(λ . Algorithms
(λ .Algorithm Design - John Kleinberg - Éva Tardos.pdf)
(λ .Algorithms and Data Structures in C++(diamond-torrents.info).chm)
(λ .Algorithms in C.pdf)
(λ .Algorithms_in_C_-_Sedgewick.pdf)
(λ .Algorithms_in_Pascal_-_Sedgewick.pdf)
@PrimaryFeather
PrimaryFeather / cloneObject
Last active June 11, 2018 11:18
Utility method to clone an AS3 object of any type.
package com.gamua.flox.utils
{
import flash.utils.describeType;
import flash.utils.getQualifiedClassName;
/** Creates a deep copy of the object.
* Beware: all complex data types will become mere 'Object' instances. Supported are only
* primitive data types, arrays and objects. Any properties marked with "NonSerialized"
* meta data will be ignored by this method.
*
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 29, 2025 02:42
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@PrimaryFeather
PrimaryFeather / Gauge.as
Last active February 29, 2020 09:35
This Starling extension class displays a texture, trimmed to its left side, depending on a ratio. This can be used to create a progress bar or a rest-time display.
package starling.extensions
{
import starling.display.Image;
import starling.display.Sprite;
import starling.textures.Texture;
import starling.utils.MathUtil;
public class Gauge extends Sprite
{
private var _image:Image;