Skip to content

Instantly share code, notes, and snippets.

View DavidSSL's full-sized avatar
💭
Set the status

DavidSSL

💭
Set the status
View GitHub Profile
@DavidSSL
DavidSSL / gist:3760894
Created September 21, 2012 10:56
View content
SELECT
*
FROM
A
SELECT
*
FROM
A
SELECT
*
FROM
Y
CREATE FUNCTION [dbo].[ufn_MimicView]
(
)
RETURNS
@ViewsData TABLE
(
A NVARCHAR(255)
, B NVARCHAR(255)
, C VARCHAR(255)
, D VARCHAR(255)
{ src: '/umbraco/ImageGen.ashx?image=/media/2764/Ice sculptures-1-2.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2776/Ice sculptures-1-3.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2788/Ice sculptures-1.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2800/Ice sculptures-10.jpg&width=350',
{ src: '/umbraco/ImageGen.ashx?image=/media/2764/Ice sculptures-1-2.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2776/Ice sculptures-1-3.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2788/Ice sculptures-1.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2800/Ice sculptures-10.jpg&width=350',
{ src: '/umbraco/ImageGen.ashx?image=/media/2764/Ice sculptures-1-2.jpg&width=350',
from: 'bottom right',to: 'top left 1.1x', time: 5 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2776/Ice sculptures-1-3.jpg&width=350',
from: '50% 100% 1x',to: '50% 0% 5.7x',time: 6 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2788/Ice sculptures-1.jpg&width=350',
from: 'top left',to: 'bottom right 1.5x',time: 5 }
,
{ src: '/umbraco/ImageGen.ashx?image=/media/2800/Ice sculptures-10.jpg&width=350',
<xml version="1.0" encoding="UTF-8"?>
xsl:stylesheet [
<!--ENTITY nbsp " ">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
public static void Main()
{
// 1. Instantiate the IWindsor container object
var container = new WindsorContainer();
// 2. Register the services and the respective components that implement them
container.Register(
Component.For( typeof( IHtmlTitleRetriever ) ).ImplementedBy( typeof(HtmlTitleRetriever) ) ,
Component.For( typeof( IFileDownloader ) ).ImplementedBy( typeof( HttpFileDownloader ) ),
Component.For( typeof( ITitleScraper ) ).ImplementedBy( typeof( StringParsingTitleScraper ) )
using Machine.Specifications;
namespace MSpecMvcApplication.Tests.Controllers
{
[Subject("Home Page")]
public class when_the_home_page_is_requested
{
It should_return_the_home_page;
}