Execute the following commands to install Node, npm, git, Java, Ionic, Cordova and Angular CLI:
cd ~
sudo apt update
sudo apt upgrade
# WSL? | |
if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then | |
export $(dbus-launch) | |
export LIBGL_ALWAYS_INDIRECT=1 | |
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g') | |
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) | |
export DISPLAY=$WSL_HOST:0 | |
# pip path if using --user | |
export PATH=$PATH:$HOME/.local/bin | |
# SSH |
The main aim of this proposal is to provide a common interface for the interoperability of message translations across different packages
$ uname -r
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
# Import our game board | |
canvas = cv2.imread('./data/box_med.jpg') | |
# Import our piece (we are going to use a clump for now) | |
piece = cv2.imread('./data/piece_small.jpg') | |
# Pre-process the piece |
<?php | |
/** | |
* Homepage presenter. | |
*/ | |
class HomepagePresenter extends BasePresenter | |
{ | |
public function handleProcessImages() | |
{ | |
$files = $this->getHttpRequest()->getFiles(); |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<clear /> | |
<rule name="TempRewriteToWeb" stopProcessing="false"> | |
<match url="^(web/)?(.*)$" /> | |
<action type="Rewrite" url="web/{R:2}" logRewrittenUrl="true" /> | |
</rule> |
<?php | |
class Foo | |
{ | |
private $_em; | |
public function __construct($entity_manager) | |
{ | |
$this->_em = $entityManager; | |
} |