Based on this guide: https://medium.com/@japheth.yates/the-complete-wsl2-gui-setup-2582828f4577
-
Enable WSL2 features
package test; | |
import io.github.gelx_.protocollib.ProtocolConnection; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.SocketAddress; | |
/** | |
* Created by Gelx on 12.11.2014. |
#!/bin/sh | |
#Hier werden einige Variablen definiert, um Änderungen leichter zu ermöglichen | |
IPTABLES="iptables" | |
INET_IFACE="eth0" | |
LAN_IFACE="wlan0" | |
LO_IFACE="lo" | |
LAN_IP="192.168.0.1" | |
LO_IP="127.0.0.1" |
#!/bin/sh | |
#Hier werden einige Variablen definiert, um Änderungen leichter zu ermöglichen | |
IPTABLES="iptables" | |
INET_IFACE="eth0" | |
LAN_IFACE="wlan0" | |
LO_IFACE="lo" | |
LAN_IP="192.168.0.1" | |
LO_IP="127.0.0.1" |
#include <iostream> | |
using namespace std; | |
class Room { | |
public: | |
Room (string n, unsigned short times) {name = n; allowedEntries = times; North = this; South = this; East = this; West = this;}; | |
unsigned short allowedEntries; | |
string name; | |
Room *North, *South, *East, *West; |
function findHandlers (element, eventType, groupBySelector = false) { | |
function stringForElement (e) { | |
if (e === document) { | |
return 'document' | |
}; | |
return e.nodeName.toLowerCase() + '.' + Array.from(e.classList).join('.'); | |
} | |
function getAllHandlers () { | |
const handlers = {}; |
(function (chatStyle) { | |
var sidebar = document.querySelector('#containerSidebar'); | |
sidebar.style.position = 'absolute'; | |
sidebar.style.bottom = 0; | |
sidebar.style.width = '100%'; | |
sidebar.style.height = '300px'; | |
var adsContainer = document.querySelector('#containerFreespace'); | |
adsContainer.style.display = 'none'; | |
}()); |
# Solves the matrix equation A x = d and returns the solution x | |
def tridiagonal_thomas (A, d): | |
A = np.copy(A) | |
d = np.copy(d) | |
n = len(d) | |
# Gaussian elimination of lower diagonal | |
for i in range(1, n): | |
s = A[i, i-1] / A[i-1, i-1] | |
A[i, i] = A[i, i] - s*A[i-1, i] |
Based on this guide: https://medium.com/@japheth.yates/the-complete-wsl2-gui-setup-2582828f4577
Enable WSL2 features