Skip to content

Instantly share code, notes, and snippets.

View TinkerWorX's full-sized avatar

Nikolaj Mariager TinkerWorX

  • Protominox
  • Denmark
View GitHub Profile
library itemscatter initializer init
globals
// config
private real RADIUS = 32.00
private real PERIOD = 1.00 / 64.00
// internal
private item current = null
endglobals
private function Abs takes real r returns real
[Export(typeof(IItemService))]
[Export(typeof(IService))]
public class ActualItemService : IItemService, IService { }
sub_8C9E40((const char *)nullsub_10, "AutomationTestStart", "(S)V");
sub_8C9E40((const char *)nullsub_9, "AutomationTestEnd", "(S)V");
sub_8C9E40((const char *)sub_495CA0, "GetTriggerPlayerMouseX", "()R");
sub_8C9E40((const char *)sub_495CF0, "GetTriggerPlayerMouseY", "()R");
sub_8C9E40((const char *)sub_495C30, "GetTriggerPlayerMousePosition", "()Hlocation;");
sub_8C9E40((const char *)sub_495BF0, "GetTriggerPlayerMouseButton", "()Hmousebuttontype;");
sub_8C9E40((const char *)sub_4A5B20, "SetAbilityTooltip", "(ISI)V");
sub_8C9E40((const char *)sub_4A5950, "SetAbilityOnTooltip", "(ISI)V");
sub_8C9E40((const char *)sub_4A56F0, "SetAbilityExtendedTooltip", "(ISI)V");
using GS1.Xml;
using Serilog;
using System.Windows;
using System.Windows.Controls;
namespace SimpleData.Windows.DesktopClient.Controls
{
public partial class GlobalProductClassificationSelector
{
public static readonly DependencyProperty SelectedSegmentProperty = DependencyProperty.Register(nameof(SelectedSegment), typeof(Segment), typeof(GlobalProductClassificationSelector));
<Application.Resources>
<loaders:XmlResourceLoader x:Key="GlobalProductClassifications" Path="data/external/Custom_GPCList.xml" Type="{x:Type gs1:Schema}" />
</Application.Resources>
public class ServiceManager
{
[NotNull]
public static ServiceManager Instance { get; } = new ServiceManager();
#pragma warning disable 649
// ReSharper disable CollectionNeverUpdated.Local
[ImportMany(typeof(IService))]
private List<IService> importedServices;
// ReSharper restore CollectionNeverUpdated.Local
public static class ArrayUtilities
{
public static void Shift<T>(T[,] array, int x, int y)
{
ShiftHorizontal(array, x);
ShiftVertical(array, y);
}
public static void ShiftHorizontal<T>(T[,] array, int x)
{
public class BooleanToVisibilityConverter : MarkupExtension, IValueConverter
{
public Visibility WhenTrue { get; set; }
public Visibility WhenFalse { get; set; }
public Visibility WhenNull { get; set; }
public override object ProvideValue(IServiceProvider serviceProvider) => this;
@TinkerWorX
TinkerWorX / local.html
Created December 27, 2017 10:57
xink.io issues
<img border="0" src="[email protected]" /><a alt="Chefs Club" href="https://issuu.com/europoultry/docs/cc_produktkatalog_dk_2017_fix?e=24295866/45868225" target="_blank"><img alt="Chefs Club" border="0" src="providers-signatures-user%40europoultry.dk-1.png" /></a><a alt="Top Table" href="https://issuu.com/europoultry/docs/tt_produktkatalog_dk_2017_fix?e=24295866/45867102" target="_blank"><img alt="Top Table" border="0" src="providers-signatures-user%40europoultry.dk-2.png" /></a>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TinkerWorX.HazardousDungeonNightmare.Bodies;
using TinkerWorX.HazardousDungeonNightmare.Entities;
using TinkerWorX.HazardousDungeonNightmare.Euclidean;
using TinkerWorX.HazardousDungeonNightmare.Scripting;
namespace TinkerWorX.HazardousDungeonNightmare.Core