This file contains 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
# mongo_template.rb | |
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
# | |
# To use: | |
# rails project_name -m http://gist.github.com/270200.txt | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" |
This file contains 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
object MyApp{ | |
trait ApplicativeFunctor[A, F[A]] { | |
def apply[X](a:X): F[X] | |
def map[B](f: A => B): F[B] | |
} | |
trait Monad[A, M[A]] extends ApplicativeFunctor[A, M] { | |
def flatMMap[B](f: A => M[B]): M[B] | |
} |
This file contains 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
var gulp = require('gulp'); | |
gulp.task('sass', sassCompile); | |
gulp.task('assets', assetCopy); | |
gulp.task('scripts', scriptCompile); | |
gulp.task('clean', clean); | |
gulp.task('prepareAndReload', ['prepare'], reloader); | |
gulp.task('prepare', ['default'], cordovaPrepare); | |
gulp.task('dev', ['default'], liveReloadServer); |