I hereby claim:
- I am joyoyoyoyoyo on github.
- I am joyoyoyoyoyo (https://keybase.io/joyoyoyoyoyo) on keybase.
- I have a public key ASCoqD60GikJ3VlSn2htUC7eD70XFWpZJdBKGFxfnEj0QAo
To claim this, I am signing this object:
package sbt | |
package internal | |
package fix | |
import scalafix.v1._ | |
import scala.meta._ | |
class Sbt0_13BuildSyntax extends SyntacticRule("Sbt0_13BuildSyntax") { | |
override def fix(implicit doc: SyntacticDocument): Patch = { | |
doc.tree.collect { |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Created by: Angel Ortega | |
* Date: 7/23/18 | |
*/ | |
import org.apache.spark.sql.{SaveMode, SparkSession} | |
import org.apache.spark.sql.functions.{count, max, sum} | |
object CityOfNewYorkChallenge extends App { | |
val spark = SparkSession.builder() |
package io.angelortega | |
import org.apache.spark.rdd.RDD | |
object MapReduceSolution extends LocalSparkContext { | |
def main(args: Array[String]): Unit = { | |
val inputRdd: RDD[String] = sc.textFile(args.head) | |
val deviceTypePoorRatios = calcPoorRatios(inputRdd) |
# Create a dictionary that can only hold integers and floats as its values | |
class IntFloatValueError(Exception): | |
def __init__(self, value): | |
self.value = value | |
def __str__(self): | |
return '{} is invalid input, CustomIntFloatDict can only accept ' \ | |
'integers and floats as its values'.format(self.value) |
#!/usr/bin/env python3 | |
import asyncio | |
import multiprocessing | |
import os | |
import ssl | |
from time import sleep | |
port = 9000 |
Vagrant::Config.run do |config| | |
# ... | |
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end |
# Non-root account is recommended for this process | |
# centos-specific prepration | |
sudo yum -y update && sudo yum -y groupinstall 'Development Tools' && sudo yum -y install curl irb m4 ruby | |
# Sanitize the environment | |
PATH=~/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin | |
unset LD_LIBRARY_PATH PKG_CONFIG_PATH | |
# install linuxbrew |