Skip to content

Instantly share code, notes, and snippets.

@Zenahr
Zenahr / regex.txt
Last active Mar 30, 2021
my personal regex list
View regex.txt
\((.*?)\) // Removes stuff inside () and () themselves. So --> (~) =>
\[(.*?)\] // Removes stuff inside [] and [] themselves. So --> [~] =>
@Zenahr
Zenahr / UE4-enable-sequencer-keep-state.md
Last active Nov 14, 2020
Unreal Engine 4 Sequencer: Make it keep state for property changes on Actors after sequence end
View UE4-enable-sequencer-keep-state.md

To make the sequencer keep property changes on Actors, add the following to your DefaultEngine.ini file inisde your project's Config folder:

[/Script/LevelSequence.LevelSequence]
DefaultCompletionMode=KeepState

To make UE4 keep the state on default, change the corresponding .ini inside your UE4 Engine folder. This will then be passed along to all future projects that you will create with this engine. Add this change to all Engine versions accordingly.

@Zenahr
Zenahr / gist:c32e09b86f1a6f1c9fbf1a397c789bb3
Created Aug 23, 2020
Open Fonts folder regularily on Windows 10
View gist:c32e09b86f1a6f1c9fbf1a397c789bb3
\\computer-name\c$\Windows\Fonts
@Zenahr
Zenahr / .md
Created Aug 23, 2020
SaveSequenceStateDefaultSetting
View .md

Save these two lines inside your UE4 DefaultEngine.ini config file:

[/Script/LevelSequence.LevelSequence] DefaultCompletionMode=KeepState

@Zenahr
Zenahr / gist:7d70cecb7524ad44830d7481ee5e3ee4
Created Jul 19, 2020
Extract frames from gif via ImageMagick
View gist:7d70cecb7524ad44830d7481ee5e3ee4
`$ convert -coalesce input.gif 1_%d.png`
@Zenahr
Zenahr / gist:b2b910478692a234057756c9f41ba5c4
Last active Jul 12, 2020
Get elements from array and put into dom using array.map() callback
View gist:b2b910478692a234057756c9f41ba5c4
function arrayToDom(inputArray, selectorID) {
            document.getElementById(selectorID).innerHTML = '<ul>' + inputArray[count].map((item) => {
                return '<li>' + item + '</li>';
            }).join('') + '</ul>';
        }
@Zenahr
Zenahr / ftp-batch-script-single-file-upload.md
Last active Jul 12, 2020
batch script - FTP single file upload
View ftp-batch-script-single-file-upload.md

Save this in a "uploadhelper.txt" file

ftp
open [FTP HOST ADDRESS]
[FTP USERNAME]
[FTP PASSWORD]
cd [FIRST SUBDIRECTORY]
cd [SECOND SUBDIRECTORY]
put index.html
quit
View snippets_pandoc.md

Create pdf with table of content out of md

pandoc -s --toc -o output.pdf input.md
@Zenahr
Zenahr / gist:21e645b3bdfd2cf4ccf13ab6bd893773
Created Jun 20, 2020
Convert all images inside folder using Imagemagick