###Moving one repo into a subdirectory of the other
Preserves notes and sets commit details to author details
in newrepo
package org.apache.hadoop.hbase.mapreduce; | |
import java.io.IOException; | |
import java.util.Collections; | |
import java.util.List; | |
import org.apache.hadoop.hbase.HBaseConfiguration; | |
import org.apache.hadoop.hbase.client.Scan; | |
import org.apache.hadoop.hbase.util.Bytes; | |
import org.apache.hadoop.mapreduce.Job; |
//Adapted from: https://github.com/jcrobak/avro-examples | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.avro.generic.GenericRecord | |
import org.apache.avro.mapred.AvroKey | |
import org.apache.avro.mapreduce.AvroKeyInputFormat | |
import org.apache.hadoop.io.NullWritable | |
import org.apache.commons.lang.StringEscapeUtils.escapeCsv |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
package com.example.jeremybell.myapplication | |
import android.app.Activity | |
import android.os.Bundle | |
import android.view.Menu | |
import android.view.MenuItem | |
class MyActivity extends Activity { | |
override def onCreate(savedInstanceState: Bundle): Unit = { | |
super.onCreate(savedInstanceState) |
import java.nio.charset.Charset | |
import java.text.SimpleDateFormat | |
import java.util.Date | |
import com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalkClient | |
import com.amazonaws.services.elasticbeanstalk.model.{UpdateEnvironmentRequest, S3Location, CreateApplicationVersionRequest} | |
import com.amazonaws.services.s3.AmazonS3Client | |
import com.amazonaws.services.s3.model.Region | |
import com.typesafe.sbt.packager.docker.DockerPlugin | |
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport.{Docker, dockerExposedPorts} |
A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)
I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.
A functor is something that supports map
.
/** | |
* Depth-first and Breadth-first graph traversals. | |
* | |
* In this diff we implement non-recursive algorithms for DFS, | |
* and BFS maintaining an explicit stack and a queue. | |
* | |
* by Dmitry Soshnikov <[email protected]> | |
* MIT Style license | |
*/ |
import scala.language.experimental.macros | |
import scala.reflect.macros.Context | |
/** | |
* you can try this in the REPL even | |
*/ | |
object SafeEq { | |
/** | |
* eqv(1, "foo") won't compile |