Skip to content

Instantly share code, notes, and snippets.

View squidge's full-sized avatar

Francisco Ruiz A squidge

View GitHub Profile
@squidge
squidge / LogOn.spark
Created November 8, 2011 16:16
How to use AjaxContinuation in FubuMVC
<script>
$(document).ready(function() {
$("#btnSubmit").click(function(e) {
e.preventDefault();
$.ajax({
type: "POST",
dataType: "json",
url: "log-on",
data: $("#logonForm").serialize(),
success: function (response) {
@fnhipster
fnhipster / html5.haml
Created April 9, 2011 01:19
HTML5 HAML Template
!!! 5
%html
%head
%title= "Your Website"
%meta{ :content => "", :name => "description" }
%meta{ :content => "", :name => "author" }
%meta{ :content => "3 days", :name => "revisit-after" }
%link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
%link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
%link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" }