Skip to content

Instantly share code, notes, and snippets.

View pasviegas's full-sized avatar

Pedro Antonio Souza Viegas pasviegas

  • São Paulo, SP, Brazil
View GitHub Profile
@pasviegas
pasviegas / gulpfile.js
Created May 3, 2017 12:26 — forked from Narigo/gulpfile.js
Cordova + React + Gulp + live reload
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);
@pasviegas
pasviegas / MT.scala
Last active August 29, 2015 14:08 — forked from huitseeker/MT.scala
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]
}
@pasviegas
pasviegas / mongo_template.rb
Created January 6, 2010 10:57 — forked from banker/Rails MongoMapper Template.rb
working mongomapper rails template (jquery, cancan)
# 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"