This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
Setup a new Android project with Android Studio. If you already have done this you can skip this step.
apply plugin: 'jacoco' | |
apply plugin: 'idea' | |
jacoco { | |
toolVersion = "0.7.0.201403182114" | |
} | |
jacocoTestReport { | |
reports { | |
xml.enabled = true |
import com.twitter.scalding._ | |
import com.twitter.algebird.{ MinHasher, MinHasher32, MinHashSignature } | |
/** | |
* Computes similar items (with a string itemId), based on approximate | |
* Jaccard similarity, using LSH. | |
* | |
* Assumes an input data TSV file of the following format: | |
* | |
* itemId userId |
sudo xcodebuild -license | |
xcode-select --install # There will be a GUI prompt | |
sudo cpan SVN::Core # use the "sudo" method when prompted | |
# Then add this to your ~/.profile: | |
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH | |
# Then probably: | |
brew reinstall git | |
brew reinstall subversion |
import com.twitter.scalding._ | |
import scala.util.parsing.json._ | |
class ParseJsonJob(args: Args) extends Job(args) { | |
TextLine(args("input")) | |
.map(('line) -> ('parseStatus, 'uri)) { | |
line: String => { | |
JSON.parseFull(line) match { | |
case Some(data: Map[String, String]) => ("success", data("uri")) | |
case None => ("failed", "") |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
typedef unsigned int u32; | |
typedef unsigned long long u64; | |
//------------------------------------------------------------------------- | |
// WorkArea | |
//------------------------------------------------------------------------- |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |