Skip to content

Instantly share code, notes, and snippets.

View dgkanatsios's full-sized avatar

Dimitris-Ilias Gkanatsios dgkanatsios

View GitHub Profile
@dgkanatsios
dgkanatsios / BinaryListCheck.cs
Last active January 6, 2016 21:18
Code to insert/check existence of an item using binary operations
static void Main(string[] args)
{
int storage = 19; //10011
int a = 1; //1
int b = 2; //10
int c = 4; //100
int d = 8;//1000
int e = 16;//10000
Console.WriteLine("--------------------------------");
Console.WriteLine("Check for the value 19 - 10011");
@dgkanatsios
dgkanatsios / TapAction
Created July 25, 2014 18:46
A XAML Behavior for a small tap animation for Windows Phone, allows for an event to run after the Storyboard is completed
public class TapAction : Behavior<FrameworkElement>
{
public string EventAfterStoryboard
{
get { return (string)GetValue(EventAfterStoryboardProperty); }
set { SetValue(EventAfterStoryboardProperty, value); }
}