Skip to content

Instantly share code, notes, and snippets.

View rousso's full-sized avatar

Yannis Rousochatzakis rousso

View GitHub Profile
@rousso
rousso / keybase.md
Created January 6, 2018 01:10
keybase.md

Keybase proof

I hereby claim:

  • I am rousso on github.
  • I am rousso (https://keybase.io/rousso) on keybase.
  • I have a public key ASD-qx5UjRL-BPJmTIeGodRJL7tbz6AxipCrSB6IGX-EdAo

To claim this, I am signing this object:

public interface IHierarchical<T> where T : IHierarchical<T>
{
T Parent { get; set; }
IList<T> Children { get; }
}
<asp:detailsview id="DetailsView1" runat="server">
...
</asp:detailsview>
<asp:HyperLink ID="HyperLink1" runat="server" Text="HyperLink" />
<input id="Button1" type="button" value="button1" runat="server"/>
<asp:Button ID="Button2" runat="server" Text="Button2" />
<%@ Register Assembly="CommunityServer.Controls" Namespace="CommunityServer.Controls" TagPrefix="CS" %>
<CS:Editor ID="edtNotes" runat="server" Height="160px" />
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
alert('This is registered by OnSubmitControlA');
alert('This is registered by OnSubmitControlB');
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false)
return false;
return true;
}
// -->
using System;
using System.Collections.Generic;
using System.Text;
namespace TestGenerics
{
class Program
{
static void Main(string[] args)
{
using System;
using System.Text.RegularExpressions;
namespace rousso
{
/// <summary>
/// GreekEuroVerbalizer is a class that cannot be instanciated (all its members are static).
/// It exposes the GetVerbal() static overloaded method that gets the Greek Verbal for a given decimal value.
/// </summary>
<location path="get_aspx_ver.aspx">
<system.web>
<customErrors mode="Off" />
</system.web>
</location>
@rousso
rousso / BindsTwoWayByDefault.cs
Last active December 13, 2015 22:49
I was creating a WPF UserControl today which (among other things) was exposing a DependencyProperty for use in data binding. The problem I came across was that it didn't bind two-way by default and for a while I couldn't figure out either why nor what was the most slick way to go about it. So here is the trick in case anyone stumbles upon this p…
public const string myPropertyName = "myProperty";
public static readonly DependencyProperty myDependencyProperty =
DependencyProperty.Register(myPropertyName,
typeof(myPropertyType),
typeof(myUSerControl),
new FrameworkPropertyMetadata() { BindsTwoWayByDefault = true });
public myPropertyType myProperty
{
get { return (myPropertyType)GetValue(myDependencyProperty); }
@rousso
rousso / Resources.XML
Created November 19, 2012 19:58
XML CV: Resources.XML
<?xml version="1.0" encoding="windows-1253" ?><resources>
<strings>
<string key="CV">
<translation language="Greek">Βιογραφικό Σημείωμα</translation>
<translation language="English">Curriculum Vitae</translation>
</string>
</strings>
</resources>