Skip to content

Instantly share code, notes, and snippets.

@AmrEldib
AmrEldib / QuiteBigModifiedTheme.html
Last active December 17, 2015 00:09
Modified version of the "Quite Big" theme for Tumblr that adds RTL support and uses the Amiri Web Font.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="color:Background" content="#ffffff"/>
<meta name="color:Title" content="#000000"/>
@AmrEldib
AmrEldib / TumblrRTLAdditionalCss3.css
Last active December 17, 2015 00:10
Additional CSS needed to add RTL support and Amiri web font to Tumblr themes.
.arabic
{
direction:rtl;
text-align:right;
font-size:1.1em;/*arabic fonts tend to render smaller*/
font-family: 'Amiri', serif;
}
.arabic h3
{
font-size: 26px
@AmrEldib
AmrEldib / TumblrRTLAddTagsAsClassesToDiv.html
Created May 5, 2013 00:11
Add {TagsAsClasses} to content DIVs to support RTL
<div class="content text-post {TagsAsClasses}">
@AmrEldib
AmrEldib / TumblrRTLAdditionalCss1.css
Created May 5, 2013 00:18
Additional CSS needed to add RTL support and Amiri web font to Tumblr themes.
.arabic
{
direction:rtl;
text-align:right;
font-size:1.1em;
}
@AmrEldib
AmrEldib / TumblrRTLImportAmiriCss.css
Created May 5, 2013 00:20
Import Amiri.css to add Web fonts to Tumblr
@import url(http://fonts.googleapis.com/earlyaccess/amiri.css);
@AmrEldib
AmrEldib / TumblrRTLAdditionalCss2.css
Last active December 17, 2015 00:10
Additional CSS needed to add RTL support and Amiri web font to Tumblr themes.
.arabic
{
direction:rtl;
text-align:right;
font-size:1.1em;
font-family: 'Amiri', serif;
}
@AmrEldib
AmrEldib / TumblrRTLAddTagsAsClassesToHeaders.html
Created May 5, 2013 00:23
Add TagsAsClasses to Headers to support web fonts in Tumblr.
<h3 class="{TagsAsClasses}">
@AmrEldib
AmrEldib / gist:6385853
Created August 30, 2013 02:45
How to Use MSXSL Command Utility
msxsl myXsd.xsd xs3p.xsl -o myXsdDocumentation.html
@AmrEldib
AmrEldib / gist:6386132
Created August 30, 2013 03:42
Command to Run PowerShell Script
powershell "& 'C:\XsdToBeConverted\ConvertAllXsdToHtml.ps1'
@AmrEldib
AmrEldib / ConvertAllXsdToHtml.ps1
Last active December 21, 2015 23:59
ConvertAllXsdToHtml.ps1Converts XSD files in the same folder to HTML files using a style sheet.
$scriptpath = $MyInvocation.MyCommand.Path
$executionFolder = Split-Path $scriptpath
$executionFolder = $executionFolder + "\"
$stylesheet = $executionFolder + "xs3p.xsl"
$Exe = $executionFolder + "msxsl.exe"
#Function to Convert XSD files to HTML
function Run-MsXsl ($XsdFile)
{