Skip to content

Instantly share code, notes, and snippets.

@carefish
carefish / ButtonDetailsIDEnumEditor.cs
Created April 17, 2020 17:03
Working assign to enum from string, custom inspector stuff.
using CockpitTraining;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
[CustomEditor(typeof(ButtonDetails))]
using CockpitTraining;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
[CustomEditor(typeof(ButtonDetails))]
using CockpitTraining;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
[CustomEditor(typeof(ButtonDetails))]
$wheel_rotate = 0.0; //to store wheel rotation during evaluation
for($i = 1; $i <= 20; ++$i)
{
$wheel = "L_wheel_" + $i + ".rotateX";
$cog_rotate = cog2_outter_Left.rotateX * 2;
setAttr $wheel $cog_rotate;
$wheel_rotate = `getAttr($wheel)`; //storing wheel rotation for later use
}
for($j = 1; $j <= 10; ++$j)//applying stored wheel rotation to spokes
using System;
using System.Net;
using System.Threading;
using LiteNetLib;
using LiteNetLib.Utils;
namespace dedicatedserver
{
class Program
{
using QRCodeWebApp.Shared;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Text;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Security.Claims;
using Microsoft.AspNetCore.Components.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Components.Authorization;
using QRCodeWebApp.Client.States;
using QRCodeWebApp.Client.Services.Contracts;
using QRCodeWebApp.Client.Services.Implementations;
using QRCodeWebApp.Shared;
using Microsoft.AspNetCore.Blazor.Http;
Duplicate preserve in resource System.Text.Json.xml in System.Text.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 of System.Void System.Text.Json.Serialization.Converters.JsonKeyValuePairConverter`2::.ctor()
Type System.Reflection.Assembly has no fields to preserve
Fatal error in IL Linker
Unhandled exception. Mono.Cecil.ResolutionException: Failed to resolve Microsoft.AspNetCore.Components.ElementRef
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkField(FieldReference reference)
at Mono.Linker.Steps.MarkStep.InitializeFields(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
@carefish
carefish / LoginPage.razor
Last active July 10, 2019 15:57
Login Component
@page "/login"
@layout MainLayout
@inject IUriHelper uriHelper
@inject IdentityAuthenticationState state
<Row>
<Column ColumnSize="ColumnSize.Is6.OnDesktop">
<Card Margin="Margin.Is4.FromBottom">
<CardHeader>
<CardTitle> Login </CardTitle>