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
class A | |
class A2 extends A | |
class B | |
trait M[X] | |
// | |
// Upper Type Bound | |
// | |
def upperTypeBound[AA <: A](x: AA): A = x |
apply plugin: "java" | |
apply plugin: "eclipse" | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile ( | |
"org.jboss.netty:netty:latest.integration", |
#!/usr/bin/env bash | |
# Formatting constants | |
export BOLD=`tput bold` | |
export UNDERLINE_ON=`tput smul` | |
export UNDERLINE_OFF=`tput rmul` | |
export TEXT_BLACK=`tput setaf 0` | |
export TEXT_RED=`tput setaf 1` | |
export TEXT_GREEN=`tput setaf 2` | |
export TEXT_YELLOW=`tput setaf 3` |
import scala.util.DynamicVariable | |
/** | |
* A concise JSON DSL in Scala. | |
* When you want to use, only | |
* import Jsson._ is needed. | |
* Note that this program change the semantics of standard -> operator. | |
* I recommend that you use enclosing block with Jsson as followings: | |
* { | |
* import Jsson._ | |
* val obj = %{ |
#!/bin/sh | |
# gclient can be found here: | |
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
# don't forget modify .bashrc: | |
# export PATH="$PATH":`pwd`/depot_tools | |
function fetch() { | |
echo "-- fetching webrtc" |
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; |
#!/usr/bin/env bash | |
# Formatting constants | |
BOLD=`tput bold` | |
UNDERLINE_ON=`tput smul` | |
UNDERLINE_OFF=`tput rmul` | |
TEXT_BLACK=`tput setaf 0` | |
TEXT_RED=`tput setaf 1` | |
TEXT_GREEN=`tput setaf 2` | |
TEXT_YELLOW=`tput setaf 3` |
# 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" |