All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
#!/usr/bin/env python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?
Simply run this command in a terminal:
cd /path/to/steam/steamapps/compatdata/20920/pfx
STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
"$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
TIME_DURATION_UNITS = ( | |
('week', 60*60*24*7), | |
('day', 60*60*24), | |
('hour', 60*60), | |
('min', 60), | |
('sec', 1) | |
) | |
def human_time_duration(seconds): |
def compute_reconstruction_statistics(reference_model_path): | |
# Images w. intrinsics and extrinsics. | |
with open(os.path.join(reference_model_path, 'cameras.txt'), 'r') as f: | |
raw_cameras = f.readlines()[3 :] | |
cameras = {} | |
for raw_line in raw_cameras: | |
split_line = raw_line.strip('\n').split(' ') | |
cameras[int(split_line[0])] = split_line[1 :] |
import { ObjectId } from 'mongodb'; | |
/* Use this to extend any interface with an `_id` property of type OID */ | |
export type TWithOid<T extends {}> = T & { | |
_id: ObjectId; | |
}; | |
/** | |
* Replaces a string property with the same property of type ObjectId. |
- Always enforce preferences on the `qvm.prefs` module: many times I see | |
`label` only in `qvm.present`, which is only run on creation of the | |
qube, not when it already exists. The `qvm.prefs` module is checked | |
everytime even if the qube already exists. I think label should be | |
enforced not let for the user to modify and then later the state | |
ignore the label change, but of course I don't know your internal | |
policy about this matter and I might be wrong depending on it. | |
- Do not specify literal names as the `source` value of `qvm.clone`, |
aahed | |
aalii | |
aapas | |
aargh | |
aarti | |
abaca | |
abaci | |
aback | |
abacs | |
abaft |
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:file_picker/file_picker.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:webview_flutter/webview_flutter.dart'; | |
// #docregion platform_imports | |
// Import for Android features. | |
// import 'package:webview_flutter_android/webview_flutter_android.dart'; |
import argparse | |
import typing | |
import math | |
from uuid import UUID | |
from pyasn1.codec.der import decoder | |
from pyasn1_modules import rfc5652 | |
from struct import unpack | |
from cryptography import utils | |
from cryptography.exceptions import AlreadyFinalized, InvalidKey | |
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction |