Skip to content

Instantly share code, notes, and snippets.

View gemire's full-sized avatar

gemire gemire

View GitHub Profile
package org.apache.spark.examples
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.rdd.RDD
import java.util.Random
import scala.collection.mutable
import org.apache.spark.serializer.KryoRegistrator
import com.esotericsoftware.kryo.Kryo
@gemire
gemire / deps.py
Created February 10, 2021 08:05 — forked from weixinfree/deps.py
快速的分析一个复杂模块的依赖关系 并且 可视化
#! /usr/bin/env python3
"""
Prerequirements:
1. brew install graphviz
2. pip3 install fire
Usage:
deps [path to code]
"""