Skip to content

Instantly share code, notes, and snippets.

View RAbraham's full-sized avatar

Rajiv Abraham RAbraham

View GitHub Profile
@RAbraham
RAbraham / tabs_scraper
Created December 2, 2012 21:35
Scraping the toronto muncipal government website for upcoming meetings based on input search text
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"
@RAbraham
RAbraham / spark-scala-worksheet
Last active August 3, 2021 22:32
Execute Apache Spark in a Scala IDE 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 / purescript-intro-meetup-apr-20.md
Last active April 21, 2016 11:30
PureScript Intro Meetup April 20

Primary Motivation

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

Setup

Mac OS