Skip to content

Instantly share code, notes, and snippets.

View rousso's full-sized avatar

Yannis Rousochatzakis rousso

View GitHub Profile
@rousso
rousso / gist:3932563
Created October 22, 2012 17:00
PageState: You can use PageState much like you use ViewState
SomeClass SomePoperty
{
get
{
return PageState["SOME_PROPERTY_NAME"] ??
(PageState["SOME_PROPERTY_NAME"] = default(SomeClass)) as SomeClass;
}
set
{
@rousso
rousso / gist:862165
Last active September 25, 2015 04:18
This gist is part of the code used in this article: http://rousso.blogspot.com/2008/03/xml-cv.html XML CV: How to include it in a Word Document
{ INCLUDETEXT http://rousso.gr/CV/My Resume.English.xml
\c XML
\t "http://rousso.gr/CV/My Resume.Word.English.xsl" }
@rousso
rousso / My Resume.Greek.XSL
Created March 9, 2011 12:55
XML CV: My Resume.Greek.XSL
<?xml version="1.0" encoding="windows-1253" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="greek" indent="yes"/>
<xsl:variable name="language" select="'Greek'"/>
<xsl:include href="http://rousso.gr/CV/My Resume.xsl"/>
<xsl:template match="/">
<xsl:call-template name="root">
<xsl:with-param name="language" select="$language"/>
</xsl:call-template>
</xsl:template>
@rousso
rousso / My Resume.XSL
Created March 9, 2011 12:46
XML CV: My Resume.XSL
<?xml version="1.0" encoding="windows-1253" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="greek" indent="yes"/>
<xsl:key name="lookup-string" match="string"use="@key"/>
<xsl:variable name="string-resources" select="document('http://rousso.gr/CV/resources.xml')//resources/strings"/>
<xsl:template name="root" match="/">
<xsl:param name="target" select="'freelancer'"/>
<xsl:param name="language" select="'Greek'"/>
<div id="myResume">
</div>
@rousso
rousso / Resources.XML
Created March 9, 2011 11:30
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>