Batch apply hex edits The edits to apply come from a CSV file in the same path
hexpatcher.ps1 has a short URL: https://git.io/vpNim
Start PowerShell 3.0+ and paste in:
| [package] | |
| name = "test" | |
| version = "0.1.0" | |
| authors = ["YOU <YOU@users.noreply.github.com>"] | |
| edition = "2018" | |
| [lib] | |
| crate-type = ["cdylib"] |
| workflow compileAndMinify { | |
| $jsFiles = Get-ChildItem -Recurse -Include *.js -Exclude *.min.js | |
| parallel { | |
| sequence { | |
| $scssFiles = Get-ChildItem -Recurse -Include *.scss | |
| ForEach -Parallel ($file in $scssFiles) { | |
| $dir = (Get-Item $file).Directory.FullName | |
| $cmd = ("sass """ + $($file.FullName) + """ """ + $dir + "\" + $file.BaseName + ".css""") | |
| Invoke-Expression $cmd | |
| } |
| Language: Cpp | |
| AccessModifierOffset: -4 | |
| AlignAfterOpenBracket: Align | |
| AlignConsecutiveAssignments: true | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: Left | |
| AlignOperands: true | |
| AlignTrailingComments: true | |
| AllowAllParametersOfDeclarationOnNextLine: true | |
| AllowShortBlocksOnASingleLine: false |
| # BASIC TKINTER CHEATSHEET | |
| # Build basic GUIs with Python | |
| from tkinter import * | |
| from tkinter import scrolledtext | |
| from tkinter import messagebox | |
| from tkinter.ttk import Progressbar | |
| from tkinter import filedialog | |
| from tkinter import Menu |
Batch apply hex edits The edits to apply come from a CSV file in the same path
hexpatcher.ps1 has a short URL: https://git.io/vpNim
Start PowerShell 3.0+ and paste in:
| // NOT Ideal NTSC composite cable CRT simulation for RetroArch <- fix of title. | |
| // by r57shell | |
| // thanks to feos & HardWareMan | |
| // ideal in terms of ideal encoding/decoding, | |
| // also, without any passbands. | |
| // also TV subpixels and scanlines | |
| void main_vertex | |
| ( |
| ///$(which true);FLAGS="-g -Wall -Wextra --std=c17 -O1 -fsanitize=address,undefined";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $FLAGS "$THIS_FILE" -o "$OUT_FILE" || exit $?;exec bash -c "exec -a \"$0\" \"$OUT_FILE\" $([ $# -eq 0 ] || printf ' "%s"' "$@")" | |
| #include <stdio.h> | |
| int main() { | |
| printf("Hello world!\n"); | |
| return 0; | |
| } |
| // Full shader example demonstrating how to use a quaterionion to rotate a vertex around a specific point. Note that this is just a plain | |
| // vanilla unlit shader which includes the necessary functions (see section below) and example code in the vertex shader. | |
| // | |
| // Forked from https://gist.github.com/nkint/7449c893fb7d6b5fa83118b8474d7dcb | |
| // Converted from GLSL to Cg. For help with that, see https://alastaira.wordpress.com/2015/08/07/unity-shadertoys-a-k-a-converting-glsl-shaders-to-cghlsl/ | |
| // | |
| // quaternion code from https://github.com/stackgl/gl-quat | |
| // rotation from https://twistedpairdevelopment.wordpress.com/2013/02/11/rotating-a-vector-by-a-quaternion-in-glsl/ | |
| Shader "Unlit/Quaternion" |