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 chapter3 | |
import util._ | |
import scala.collection.mutable.ArrayBuffer | |
import java.awt.datatransfer._ | |
import scala.collection.JavaConverters._ | |
import scala.collection.mutable.Buffer | |
object ExercisesCh3 { | |
// 1. array of random ints |
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 chapter2 | |
import math._ | |
object ExercisesCh2 { | |
def signum(i: Int) = if (i < 0) -1 else if (i > 0) 1 else 0 | |
//> signum: (i: Int)Int | |
signum(5) //> res0: Int = 1 | |
signum(-5) //> res1: Int = -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
# Install Git from http://git-scm.com/ and then launch Git Bash | |
# Generate SSH key pair | |
ssh-keygen -t rsa -C <username>@gmail.com | |
#Turn on SSH agent | |
ssh-agent -s | |
eval $(ssh-agent -s) | |
# List SSH keys registered in the SSH agent |
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 chapter1 | |
import math._ | |
import math.BigInt._ | |
import util._ | |
object ExercisesCh1 { | |
3 //> res0: Int(3) = 3 | |
pow(sqrt(3),2) //> res1: Double = 2.9999999999999996 |
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
FROM centos:6.6 | |
MAINTAINER "Francisco Lopez" [email protected] | |
# update & upgrade packages | |
RUN yum update -y & yum upgrade -y | |
# install extra packages and basic tools (included some required for Greenplum installer) | |
RUN yum install -y epel-release git unzip which tar sed wget curl nano expect | |
# cleanup packages |
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/env bash | |
set timeout 60 | |
cd /tmp | |
/usr/bin/expect << EOF | |
spawn /bin/bash greenplum-db-4.2.6.1-build-1-RHEL5-x86_64.bin | |
expect { | |
-ex "--More--" { | |
send "\n" |
NewerOlder