Skip to content

Instantly share code, notes, and snippets.

View jgollenz's full-sized avatar
🐞
HIC SVNT CIMICES

Jonas Gollenz jgollenz

🐞
HIC SVNT CIMICES
  • Austria
View GitHub Profile
@VonHeikemen
VonHeikemen / map_utils.lua
Last active March 27, 2022 16:15
Allows you to use lua functions with `vim.api.nvim_set_keymap` (for neovim 0.6.1 or lower)
local M = {}
local module_name = 'map_utils'
local fn_store = {}
local function register_fn(fn)
table.insert(fn_store, fn)
return #fn_store
end
function M.apply_function(id)

Newport Research Document

As I've been working on this project I've realized that I need a space to throw a bunch of information regarding design patterns, API's, and system architecture. I can't retain all of this in my head and I've found some deep hidden blogs/research that have been extremely helpful. There will be "basic" information in this doc. I want a place where someone can start picking up on Game Engine Programming.

API Selection

Name Platform Reason
Vulkan Windows, Linux, Switch Hardware Abstraction Layer
DirectX12 Windows, XBOX Hardware Abstraction Layer
DirectXCompiler Windows, Linux, XBOX Runtime Shader Compilation
SPIRV Reflect Windows, Linux, Switch Vulkan Description Layout
@WingTillDie
WingTillDie / clangHiddenOptions.txt
Created September 5, 2018 13:28
Clang hidden options
$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix
InstalledDir: /usr/bin
$ clang --help-hidden
OVERVIEW: clang LLVM compiler
USAGE: clang-5.0 [options] <inputs>
@GrayedFox
GrayedFox / git-glean
Last active March 27, 2025 13:28
Remove local branches with a missing (gone) upstream
#!/usr/bin/env bash
# first we prune origin to ensure our local list of remote branches is up to date
git remote prune origin
GONE_BRANCHES=$(git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}')
if [ -z "$GONE_BRANCHES" ]; then
echo "Could not find any local branches that have a gone remote"
exit 0
@Aerijo
Aerijo / tree_sitter_guide.md
Last active February 17, 2025 23:42
Guide to writing your first Tree-sitter grammar

Guide to your first Tree-sitter grammar

NOTE: The Tree-sitter API and documentation has changed and improved since this guide was created. I can't guarantee this is up to date.

About

Tree-sitter is the new way Atom is providing language recognition features, such as syntax highlighting, code folding, autocomplete, and more. In contrast to TextMate grammars, which work by regex matching, Tree-sitter will generate an entire syntax tree. But more on that can be found in it's own docs.

Here, we look at making one from scratch.

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active April 19, 2025 05:22
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@wavezhang
wavezhang / java_download.sh
Last active April 19, 2025 05:00
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y