Skip to content

Instantly share code, notes, and snippets.

@morsdyce
morsdyce / milestone_leadmachine.html
Created April 9, 2012 10:53
Milstone Leadmachine Implemenation
<!--
add the leadmachine javascript to ALL pages on the site (so it can track cookies across the entire site)
<script type="text/javascript" src="http://operad.net/lm.js?lang=en">
// Operad LeadMachine tracker.
</script>
-->
@morsdyce
morsdyce / adva.html
Created September 5, 2012 18:44
Adva
<div class="pic_wrapper">
<a href="http://twiter.co.il/ramimeiri/seminar/%d7%a6%d7%99%d7%91%d7%95%d7%a8-%d7%95%d7%97%d7%99%d7%a0%d7%95%d7%9a/">
<div class="pic">
<img width="287" height="173" src="http://twiter.co.il/ramimeiri/wp-content/uploads/ציבור-וחינוך-287x173.jpg" class="attachment-portfolio-3-column wp-post-image" alt="ציבור וחינוך" title="ציבור וחינוך">
</div>
</a>
<div class="pop_description1">
<a href="http://twiter.co.il/ramimeiri/seminar/%d7%a6%d7%99%d7%91%d7%95%d7%a8-%d7%95%d7%97%d7%99%d7%a0%d7%95%d7%9a/" title="ציבור וחינוך">
<img src="http://twiter.co.il/ramimeiri/wp-content/themes/cleancreative-theme/images/icon_zoom.png" alt="">
</a>
@morsdyce
morsdyce / example.cs
Created November 3, 2012 08:59
Glikm Syntax Highlighting example
namespace glikm.com
{
public class Main()
{
Foo foo = new Foo { foo = "Foo" };
public void MoreFoo(Foo foo)
{
foo != null
? Console.WriteLine("Yay more Foo!")
@morsdyce
morsdyce / example1.cs
Created November 3, 2012 09:03
Castle windsor example 1
IENumerable<ExampleProject1.Models.Book>
<h2>BookList</h2>
<% foreach (var book in Model) { %>
<div>
Book Id: <%:book.Id%>
Book Author: <%:book.Author%>
Book Name: <%:book.Name%>
</div>
<% } %>
private readonly IEBookRepository _bookRepository;
public HomeController(IEBookRepository bookRepository)
{
this._bookRepository = bookRepository;
}
return View("BookList",_bookRepository.ListEBook());
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new SparkViewFactory());
<section name="spark" type="Spark.Configuration.SparkSectionHandler, Spark"/>
<spark>
<compilation debug="true" />
<pages automaticEncoding="true">
<namespaces>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web" />
<add namespace="System" />