Skip to content

Instantly share code, notes, and snippets.

View MatosOliveira's full-sized avatar

Matos Oliveira MatosOliveira

View GitHub Profile
@BeachBird
BeachBird / TweetSet.scala
Created April 25, 2015 15:13
Functional Programming Principles in Scala. Object-Oriented Sets 3.1 Filtering 3.2 Taking Unions 3.3 Sorting Tweets by Their Influence 3.4 Tying everything together
package objsets
import common._
import TweetReader._
import java.lang.String._
/**
* A class to represent tweets.
*/
class Tweet(val user: String, val text: String, val retweets: Int) {
@ngocdaothanh
ngocdaothanh / gist:3764694
Created September 22, 2012 00:43
Scala Assignment: Recursion
package recfun
import scala.collection.mutable.ListBuffer
import common._
/** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {