In the Vagrantfile, do :
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network :public_network
/* | |
* to run from console: | |
* $scala DuplicatesFinder.scala /path/to/android/project | |
*/ | |
import java.io.File | |
import scala.xml._ | |
val folder = args(0) | |
val project = new File(folder) |
//To compile: | |
//cc vlcsms.c -o vlcsms -lvlc | |
//This source is by Tim Sheerman-Chase and it is released as public domain. | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <inttypes.h> | |
#include <vlc/vlc.h> |
/** | |
* Copyright 2013 John Smith | |
* | |
* This file is part of Jewelsea Tic-Tac-Toe. | |
* | |
* Jewelsea Tic-Tac-Toe is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
//To compile: | |
//cc vlcsms.c -o vlcsms -lvlc | |
//This source is by Tim Sheerman-Chase and it is released as public domain. | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <inttypes.h> | |
#include <vlc/vlc.h> |
package typedactordemo | |
import akka.actor._ | |
import akka.dispatch.Future | |
import akka.pattern.ask | |
import akka.util.Timeout | |
import akka.util.duration._ | |
case class Request(payload: String) | |
case class Response(payload: String) |
class A | |
class A2 extends A | |
class B | |
trait M[X] | |
// | |
// Upper Type Bound | |
// | |
def upperTypeBound[AA <: A](x: AA): A = x |
import scala.concurrent._ | |
def interruptableFuture[T](fun: Future[T] => T)(implicit ex: ExecutionContext): (Future[T], () => Boolean) = { | |
val p = Promise[T]() | |
val f = p.future | |
val lock = new Object | |
var currentThread: Thread = null | |
def updateCurrentThread(newThread: Thread): Thread = { | |
val old = currentThread | |
currentThread = newThread |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package ca.weblite.cocoa.ui; | |
import ca.weblite.objc.NSObject; | |
import ca.weblite.objc.Proxy; | |
import java.awt.FileDialog; | |
import static ca.weblite.objc.RuntimeUtils.msg; |
# How to use ART to compile arm oat files on the host: | |
# - Get source code according to https://source.android.com/source/downloading.html | |
# - source build/envsetup.sh | |
# - mm build-art | |
# - Use this script in the source root directory to compile APKs | |
CWD=`pwd` | |
export ANDROID_DATA="${CWD}/out/host/datadir/dalvik-cache/x86_64" | |
export ANDROID_ROOT="${CWD}/out/host/linux-x86" | |
BOOT_IMAGE="${CWD}/out/host/linux-x86/framework/core.art" |