This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package myproject.comet | |
import net.liftweb._ | |
import actor.LiftActor | |
import common.{Full, Empty, Box} | |
import http._ | |
import js.JE._ | |
import js.JE.JsArray._ | |
import js.JE.JsRaw._ | |
import js.JsCmds._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seq(WebPlugin.webSettings :_*) | |
scalaVersion := "2.8.1" | |
libraryDependencies ++= Seq( | |
"net.liftweb" %% "lift-webkit" % "2.3" % "compile", | |
"net.liftweb" %% "lift-mapper" % "2.3" % "compile", | |
"org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty,test", | |
"ch.qos.logback" % "logback-classic" % "0.9.26", | |
"junit" % "junit" % "4.5" % "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTP Status Cats | |
# Apache (htaccess) config created by @dave1010 | |
# Licensed CC BY 2.0 | |
# Images CC BY 2.0, from GirlieMac's photostream: | |
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
# Usage: copy save this file as .htaccess or add it to your httpd.conf | |
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ = jQuery | |
requestAnimFrame = window.requestAnimationFrame or window.mozRequestAnimationFrame or window.webkitRequestAnimationFrame or window.msRequestAnimationFrame or window.oRequestAnimationFrame or (callback) -> window.setTimeout(callback, 1000 / 60) | |
$.fn.axiom = (render) -> | |
$element = $ this | |
$canvas = $("<canvas width=\"#{$element.width()}\" height=\"#{$element.height()}\" />").appendTo(this) | |
screen = $canvas[0].getContext '2d' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
$('.toggle, .pressed').each -> | |
$('<input>', { type: 'hidden', name: $(this).data('name'), value: 'on' }).appendTo($(this)) | |
$('.toggle').click -> | |
$btn = $(this) | |
$btn.toggleClass 'pressed' | |
if $btn.is '.pressed' | |
$('<input>', { type: 'hidden', name: $btn.data('name'), value: 'on' }).appendTo($btn) | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
$('.toggle, .pressed').each -> | |
$('<input>', { type: 'hidden', name: $(this).data('name'), value: 'on' }).appendTo($(this)) | |
$('.toggle').click -> | |
$btn = $(this) | |
$btn.toggleClass 'pressed' | |
if $btn.is '.pressed' | |
$('<input>', { type: 'hidden', name: $btn.data('name'), value: 'on' }).appendTo($btn) | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Matrix(_1: (Float, Float, Float, Float), | |
_2: (Float, Float, Float, Float), | |
_3: (Float, Float, Float, Float), | |
_4: (Float, Float, Float, Float)) extends Immutable { | |
lazy val transpose = Matrix( | |
(_1._1, _2._1, _3._1, _4._1), | |
(_1._2, _2._2, _3._2, _4._2), | |
(_1._3, _2._3, _3._3, _4._3), | |
(_1._4, _2._4, _3._4, _4._4)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sbt 0.10 parent project definition | |
import sbt._ | |
imoprt Keys._ | |
object General { | |
val settings = Defaults.defaultSettings ++ Nicol.engineSettings ++ Seq ( | |
organization := "com.github.scan", | |
version := "0.1.0.1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
module Theorem.Core.Monad ( | |
TheoremT, Theorem, MonadTheorem(..), | |
MonadIO(..), | |
runTheorem | |
) where | |
import Control.Monad (Monad) | |
import Control.Monad.RWS (RWST, MonadRWS) | |
import Control.Monad.Reader (ReaderT, MonadReader) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Matrix(_1: (Double, Double, Double, Double), _2: (Double, Double, Double, Double), | |
_3: (Double, Double, Double, Double), _4: (Double, Double, Double, Double)) extends Immutable { | |
def transpose = Matrix( | |
(_1._1, _2._1, _3._1, _4._1), | |
(_1._2, _2._2, _3._2, _4._2), | |
(_1._3, _2._3, _3._3, _4._3), | |
(_1._4, _2._4, _3._4, _4._4) | |
) |