Skip to content

Instantly share code, notes, and snippets.

View fahadsuhaib's full-sized avatar

Mohamed Suhaib Fahad fahadsuhaib

View GitHub Profile
@fahadsuhaib
fahadsuhaib / gist:3120783
Created July 16, 2012 05:21
jQueryUI with Pit
// F# code
jQueryUI("#dragEl")
.draggable(
[ "axis" => "y"
"containment" => "#demo-frame"
])
.ignore()
// Output
@fahadsuhaib
fahadsuhaib / F#
Created January 25, 2012 09:50
Pit jQuery integration
/// Pit jQuery API - Experimental version, modifies Pit AST to generate proper jQuery output
document.GetElementById("check")
|> jQuery.ofEl
|> jQuery.attr3 ([|"src","/images/hat.gif";"title","jQuery";"alt","jQuery logo"|])
|> jQuery.css3 ("background","red")
|> jQuery.ignore