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 static class LeakTracker | |
{ | |
static List<WeakReference> _tracker = new List<WeakReference>(); | |
/// <summary> | |
/// should be called only at object construction/instantiation | |
/// </summary> | |
public static void Add(object objToTrack) | |
{ | |
Prune(); |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using Fleck; | |
namespace FleckDemo.Controllers | |
{ | |
public class WSDemo : IDisposable |
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 class SyncTransform : SyncComponenent | |
{ | |
/// <summary> | |
/// Sync Update order | |
/// </summary> | |
public int UpdateOrder = 0; | |
[Range(0, 2)] | |
public float Smoothness = 1f; |
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 UnityEngine.UI; | |
/* | |
Radial Layout Group by Just a Pixel (Danny Goodayle) - http://www.justapixel.co.uk | |
Copyright (c) 2015 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
// MIT License | |
// Nicholas Ventimiglia | |
// 2016-9-19 | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.Linq; |
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 System; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Android.Graphics; | |
using Xamarin.Forms; | |
using Color = Xamarin.Forms.Color; | |
using Path = System.IO.Path; | |
namespace Ventimiglia.Controls |
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
Do <select>'s drive you crazy ? Want to use a bootstrap dropdown in your forms? now you can. | |
This plugin works by binding the dropdown to a hidden form element. | |
// HTML | |
<div class="navbar-right navbar-collapse collapse" id="navbar-collapse2"> | |
<ul class="nav navbar-nav"> | |
<li class="form-groupdropdown proxy-select" data-target="#Role2"> | |
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">All Catalogs</a> | |
<ul class="dropdown-menu" role="menu"> | |
<li><a href="#" value="0">All Catalogs</a></li> |
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 System; | |
using System.Net.WebSockets; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace System.Net.Sockets | |
{ | |
public class WebSocketWrapper : IDisposable | |
{ |
NewerOlder