- Dynamic Typing: Personally lost 10 hours or more.
- Elegant code: No Defensive programming. Code with clear intent
This file contains 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 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" |
This file contains 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 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 |