- 90% of traffic accidents are caused by human error
- 15% of road accidents are caused by fatigue
- Emergency number: 112
- Non-emergency number: 09008844
- Emergency lay-bys are installed every 500-1000 metres
- Warning triangle must be placed 30 metres from the vehicle
// Function to fill textarea and click send button
function fillAndSend(message) {
// Select the textarea
const textarea = document.querySelector('textarea[placeholder="Chat with everyone"]');
// Fill the textarea with the message
if (textarea) {
textarea.value = message;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
import socket | |
import os | |
import json | |
try: | |
os.remove("/tmp/livestatus.sock") | |
except OSError: | |
pass | |
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |
This file contains hidden or 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 MAX_ITEM1: i64 = 1000000; | |
const MAX_ITEM2: &str = "HJ"; | |
fn main() { | |
let y = 3; | |
println!("y = {}", y); | |
let mut x = 1; | |
x += 1; | |
println!("x = {}", x); |
This file contains hidden or 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
fn main() { | |
let x: i32 = 2; | |
take_ownership_x(x); | |
println!("x = {}", x); | |
let y = String::from("Hello"); | |
take_ownership(y); | |
// the following line shall fail since value borrowed above | |
// println!("y = {}", y); |
This file contains hidden or 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
> |
NewerOlder