route 172.16.0.0/24
route 172.16.1.2
...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{Read, Write}; | |
use std::net::TcpListener; | |
fn main() -> std::io::Result<()> { | |
let listener = TcpListener::bind("127.0.0.1:9000")?; | |
println!("Listening on port 9000"); | |
for conn in listener.incoming() { | |
let mut conn = conn?; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<video id="video" autoplay playsinline></video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { defineComponent, h, useCssModule } from 'vue'; | |
// https://github.com/EvodiaAut/vue-marquee-text-component/blob/master/src/components/MarqueeText.vue | |
export default defineComponent({ | |
name: 'MarqueeText', | |
props: { | |
duration: { | |
type: Number, | |
default: 15, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ripple | |
position relative | |
overflow hidden | |
transform translate3d(0, 0, 0) | |
.ripple:after | |
content '' | |
display block | |
position absolute | |
width 100% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SIP = require('sip.js'); | |
const net = require('net'); | |
const TransportStatus = { | |
STATUS_CONNECTING: 'STATUS_CONNECTING', | |
STATUS_CONNECTED: 'STATUS_CONNECTED', | |
STATUS_CLOSING: 'STATUS_CLOSING', | |
STATUS_CLOSED: 'STATUS_CLOSED' | |
}; |