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/bash | |
#echo "Creating an SSH key for you..." | |
#ssh-keygen -t rsa | |
#echo "Please add this public key to Github \n" | |
#echo "https://github.com/account/ssh \n" | |
#read -p "Press [Enter] key after this..." | |
## disable screen saver + sleep before starting the script | |
## TODO: check if zsh + powerlevel2k + zshX already installed. If reinstalled script will exit with error |
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 scalaz.example | |
object Reader extends App { | |
/** | |
* Manual propagation of the environment (in the example, `contextRoot`.) | |
*/ | |
object Config0 { | |
def fragment1(contextRoot: String) = <a href={contextRoot + "/foo"}>foo</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
import java.io.{ BufferedReader, File, FileReader } | |
import scalaz._, Scalaz._, effect.IO, iteratee.{ Iteratee => I, _ } | |
object IterateeIOExample { | |
type ErrorOr[+A] = EitherT[IO, Throwable, A] | |
def openFile(f: File) = IO(new BufferedReader(new FileReader(f))) | |
def readLine(r: BufferedReader) = IO(Option(r.readLine)) | |
def closeReader(r: BufferedReader) = IO(r.close()) |
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
////////////////////////////////////// | |
/// Grid Directive to Angular 1.0.2 | |
////////////////////////////////////// | |
// To use: | |
// <script> | |
// var app = angular.module('myapp', ['ngGrid']); | |
// var Ctrl = function($scope) { $scope.todos = [...] } | |
// </script> | |
// <div ng-app="myapp"> |
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
import scala.collection.mutable.ListBuffer | |
import akka.actor.{Actor,ActorRef} | |
import akka.actor.Actor._ | |
import akka.routing.{ Listeners, Listen } | |
//Represents a domain event | |
trait Event | |
//A builder to create domain entities | |
trait EntityBuilder[Entity] { |