Skip to content

Instantly share code, notes, and snippets.

Avatar

Rajiv Abraham RAbraham

View GitHub Profile
@RAbraham
RAbraham / purescript-intro-meetup-apr-20.md
Last active Apr 21, 2016
PureScript Intro Meetup April 20
View purescript-intro-meetup-apr-20.md

PureScript

Primary Motivation

  • Dynamic Typing: Personally lost 10 hours or more.
  • Elegant code: No Defensive programming. Code with clear intent

Setup

Mac OS

@RAbraham
RAbraham / spark-scala-worksheet
Last active Aug 3, 2021
Execute Apache Spark in a Scala IDE worksheet
View spark-scala-worksheet
package org.apache.spark.graphx
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
import org.apache.spark.rdd.RDD
import org.apache.spark._
object repl {
val sc = new SparkContext("local", "test") //> sc : org.apache.spark.SparkContext = org.apache.spark.SparkContext@3724af13
@RAbraham
RAbraham / tabs_scraper
Created Dec 2, 2012
Scraping the toronto muncipal government website for upcoming meetings based on input search text
View tabs_scraper
import json
def search_toronto_site(text,committee,from_date,to_date,item_status):
from functools import partial
#from twill.commands import *
import twill.commands as crawler
SEARCH_FORM = 1
search_page = "http://app.toronto.ca/tmmis/findAgendaItem.do?function=doPrepare"