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 com.danosipov.example | |
import java.nio.ByteBuffer | |
import java.util.Date | |
import cascading.tuple.Fields | |
import com.twitter.algebird.Aggregator.{prepareMonoid => sumAfter} | |
import com.twitter.algebird.{HLL, HyperLogLog, HyperLogLogMonoid} | |
import com.twitter.bijection.{AbstractBijection, Bijection, Injection} | |
import com.twitter.scalding._ |
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 com.danosipov.example | |
import java.util.Date | |
import com.twitter.scalding._ | |
/** | |
* Simple job to calculate the total of one-way interactions from users. | |
*/ | |
class InteractionJob(args: Args) extends Job(args) { |
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
/** | |
* To get started: | |
* git clone https://github.com/twitter/algebird | |
* cd algebird | |
* ./sbt algebird-core/console | |
*/ | |
/** | |
* Let's get some data. Here is Alice in Wonderland, line by line | |
*/ |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00000001117ec53d, pid=10285, tid=21775 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13) | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode bsd-amd64 compressed oops) | |
# Problematic frame: | |
# J 12304 C2 scala.runtime.ScalaRunTime$.hash(Ljava/lang/Object;)I (30 bytes) @ 0x00000001117ec53d [0x00000001117ec500+0x3d] | |
# |
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
Running com.aweber.api.BaseCallbackTest | |
2ms spent in ./TestManifest.xml | |
WARNING: no system properties value for ro.build.date.utc | |
285ms spent in opening JAR /Users/dano/.m2/repository/org/robolectric/android-all/4.1.2_r1-robolectric-0/android-all-4.1.2_r1-robolectric-0.jar | |
DEBUG: Loading resources for com.aweber from ./res... | |
136ms spent in values | |
* DocumentLoader.parse: 83ms | |
* org.robolectric.res.AttrResourceLoader: 4ms | |
* org.robolectric.res.PluralResourceLoader: 3ms | |
* org.robolectric.res.StyleResourceLoader: 7ms |
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
public class ScrollDisabledListView extends ListView { | |
private int mPosition; | |
public ScrollDisabledListView(Context context) { | |
super(context); | |
} | |
public ScrollDisabledListView(Context context, AttributeSet attrs) { | |
super(context, attrs); |
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
-- NOTES: | |
-- double dash denotes comments | |
-- $ denotes shell command | |
-- everything else is Pig Latin, executed in Grunt | |
-- Data set downloaded from http://www.ncdc.noaa.gov | |
-- Load data into Hadoop | |
$ hadoop fs -put ./input.txt input.txt | |
$ hadoop fs -ls | |
$ hadoop fs -tail hdfs://localhost.localdomain:8020/user/cloudera/input.txt |