- Make sure you have yo installed:
npm install -g yo
- Run:
yo webapp
- Install grunt-contrib-jade:
npm install grunt-contrib-jade --save-dev
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 org.noisesOfHill.exercises.EightQueens | |
import scalaz._ | |
import Scalaz._ | |
/** | |
* User: AitorATuin | |
* Date: 13/06/12 | |
* Time: 19:56 | |
* Little program to solve the epic problem of the Eight Queens. |
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 com.sbs.oraculus.loserishoraculus | |
trait LoserishOraculus { | |
def showMeTheAnswer:String | |
} |
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
#!/usr/bin/lua | |
-- | |
-- Monty Hall | |
-- | |
-- | |
local chooseDoor = function () | |
return math.random(1,3) | |
end |
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
n = [1..3] | |
takeN = (n) -> (arr) -> | |
_add = (arr1,arr2) -> (i) -> arr1[i] = arr2[i] | |
arr1 = [] | |
(_add arr1, arr) i for i in [0..n-1] | |
test = ["a","b","c","d","e"] | |
res = (takeN 2) 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
package com.logikujo.form | |
import com.logikujo.Validator._ | |
import scalaz._ | |
import Scalaz._ | |
object Form extends App { | |
def toInt(s:String) = try { | |
s.toInt.some |
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 com.logikujo.scalazrepl | |
import scalaz._ | |
import Scalaz._ | |
object BirdsCommon { | |
type Pole = (Int, Int) | |
trait Direction | |
case object Left extends Direction | |
case object Right extends Direction |
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 com.logikujo.CryptoI | |
import scala.annotation.tailrec | |
import Implicits._ | |
import MessageDigest.JSHA256._ | |
import scalaz._ | |
import Scalaz._ | |
import java.io.{FileInputStream => FIStream, BufferedInputStream => BFStream, RandomAccessFile} | |
import java.nio.file.{Paths, Path} |
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
/** | |
* | |
* spores / LogiDev - [Fun Functional] / Logikujo.com | |
* | |
* com.logikujo.Spore 25/08/13 :: 20:06 :: eof | |
* | |
*/ | |
import com.logikujo.Spore._ | |
import scalaz._ |
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
#!/bin/sh | |
function usage() { | |
echo -e "Little script to create a chroot environment for nginx installations (under archlinux)." | |
echo -e "\t ATuin" | |
echo -e "\t GNU GPL 3.0 . No warranties at all. Use at your own risk." | |
echo -e | |
echo -e "" echo usage: $0 [directory] | |
echo -e "\n\t\t --help :: show detailed help on how to setup the chroot environment" | |
exit 1; |
OlderNewer