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 |
| import org.testng.annotations.Test; | |
| @Test | |
| public class AmDependent { | |
| public void methodD() { | |
| System.out.println(this.getClass().getSimpleName() | |
| + ".method D : Thread ID : " + Thread.currentThread().getId()); | |
| } |
| /** | |
| * Copyright (c) 2013 Xcellent Creations, Inc. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining | |
| * a copy of this software and associated documentation files (the | |
| * "Software"), to deal in the Software without restriction, including | |
| * without limitation the rights to use, copy, modify, merge, publish, | |
| * distribute, sublicense, and/or sell copies of the Software, and to | |
| * permit persons to whom the Software is furnished to do so, subject to | |
| * the following conditions: |
| public class Base62 { | |
| public static final String ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
| public static final int BASE = ALPHABET.length(); | |
| private Base62() {} | |
| public static String fromBase10(int i) { | |
| StringBuilder sb = new StringBuilder(""); |
| /* | |
| Copyright 2018 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| #!/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" |
| #!/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` |
| #=============================================================================== | |
| # Filename: boost.sh | |
| # Author: Pete Goodliffe | |
| # Copyright: (c) Copyright 2009 Pete Goodliffe | |
| # Licence: Please feel free to use this, with attribution | |
| # Modified version | |
| #=============================================================================== | |
| # | |
| # Builds a Boost framework for the iPhone. | |
| # Creates a set of universal libraries that can be used on an iPhone and in the |
This code was quickly ripped out of an active project to serve as an example. It will not compile in any way!
Any questions? Add them to the comments!