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
using UnityEngine; | |
using VContainer.Unity; | |
namespace VContainer | |
{ | |
public static class IContainerBuilderExtension | |
{ | |
public static RegistrationBuilder RegisterComponentInGameObject<T>(this IContainerBuilder builder, | |
GameObject gameObject = default) | |
where T : MonoBehaviour |
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
@startuml | |
class C0 {} | |
class C1 {} | |
class C2 {} | |
class @N0.C0 {} | |
class "C1" as @N0.C0+C1 {} | |
class "C2" as @N0.C0+C1+C2 {} |
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
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':native:minifyReleaseWithR8'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:208) | |
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263) | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:206) | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:187) | |
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114) | |
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) | |
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) | |
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.ja |
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
public void Foo(Action<int> callback) | |
{ | |
} | |
#region UniTask wrapper | |
private CancellationTokenSource _source; | |
public async void FooAsync() | |
{ |
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
name: Format C# | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
dotnet-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch info | |
id: comment-branch |
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
function New-TemporaryDirectory { | |
$parent = [System.IO.Path]::GetTempPath() | |
[string] $name = [System.Guid]::NewGuid() | |
$item = New-Item -ItemType Directory -Path (Join-Path $parent $name) | |
return $item.FullName | |
} | |
$git = (Get-Command git -ErrorAction Ignore).Source | |
if ($git -eq $null) { | |
Write-Host "git not exists" |
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
@echo off | |
rem build script for https://github.com/armory3d/armorpaint | |
rem build only armorcore module | |
rem Parameters: | |
rem clean, git clean and restore | |
rem update, git pull | |
rem rebase, git rebase | |
rem locale, update locale | |
rem win, build for Windows |
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
function FindAdb() { | |
# find from process list | |
$adbPath = Get-Process -Name "adb" -ErrorAction Ignore | | |
Sort-Object Id | | |
Select-Object -First 1 -ExpandProperty Path | |
if ($null -ne $adbPath) { | |
return $adbPath | |
} | |
# find from Unity in process list |
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_ANDROID | |
using System.IO; | |
using UnityEditor.Android; | |
public class FixPathInBuildGradle : IPostGenerateGradleAndroidProject | |
{ | |
public int callbackOrder { get; } | |
public void OnPostGenerateGradleAndroidProject(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
2020-04-17 17:13:34,502 | ERROR | FileEditorManagerImpl | @NotNull method org/intellij/plugins/markdown/settings/MarkdownPreviewSettings.getSplitEditorLayout must not return null | |
java.lang.IllegalStateException: @NotNull method org/intellij/plugins/markdown/settings/MarkdownPreviewSettings.getSplitEditorLayout must not return null | |
at org.intellij.plugins.markdown.settings.MarkdownPreviewSettings.$$$reportNull$$$0(MarkdownPreviewSettings.java) | |
at org.intellij.plugins.markdown.settings.MarkdownPreviewSettings.getSplitEditorLayout(MarkdownPreviewSettings.java:52) | |
at org.intellij.plugins.markdown.ui.split.SplitFileEditor.<init>(SplitFileEditor.java:48) | |
at org.intellij.plugins.markdown.ui.preview.MarkdownSplitEditor.<init>(MarkdownSplitEditor.java:19) | |
at org.intellij.plugins.markdown.ui.preview.MarkdownSplitEditorProvider.createSplitEditor(MarkdownSplitEditorProvider.java:19) | |
at org.intellij.plugins.markdown.ui.split.SplitTextEditorProvider$1.build(SplitTextEditorProvider.java:71) | |
at com.intellij.o |