First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WSL2 network port forwarding script v1 | |
| # for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
| # for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
| # written by Daehyuk Ahn, Aug-1-2020 | |
| # Display all portproxy information | |
| If ($Args[0] -eq "list") { | |
| netsh interface portproxy show v4tov4; | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEditor.Build; | |
| #if UNITY_2017 | |
| class AutoHideSplashScreen : IPreprocessBuild | |
| { | |
| public int callbackOrder { get { return 0; } } | |
| public void OnPreprocessBuild(BuildTarget target, string path) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kotlin.reflect.full.declaredMemberProperties | |
| import kotlin.reflect.full.primaryConstructor | |
| /** | |
| * Merge two data classes | |
| * | |
| * The resulting data class will contain: | |
| * - all fields of `other` which are non null | |
| * - the fields of `this` for the fields which are null in `other` | |
| * |