Create the ini files with the appropriate command:
mame -createconfig
# Create a Shell COM object | |
$shell = New-Object -ComObject Shell.Application | |
# Get the Recycling Bin folder | |
$recycleBin = $shell.Namespace(0xa) | |
# Get the items in the Recycling Bin | |
$recycleBinItems = $recycleBin.Items() | |
# Sort items by deletion date in descending order | |
$sortedItems = $recycleBinItems | Sort-Object { $_.ExtendedProperty('System.Recycle.DateDeleted') } -Descending | |
$potPlayerDir = "C:\Program Files\DAUM\PotPlayer" | |
$potPlayerFull = "C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" |
#!/bin/bash | |
npm i -g @aivenio/tsc-output-parser; | |
echo "Running vue-tsc and parsing output into errors.json"; | |
npx vue-tsc --strict --noEmit | npx tsc-output-parser > errors.json; | |
echo "remapping errors.json"; | |
echo '<?php | |
$errors = []; | |
$jsonOpts = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES; | |
$json = json_decode(file_get_contents("errors.json"),true); | |
foreach ($json as $row) { |
$programFilesThemesDir = "$env:PROGRAMFILES\Notepad++\themes\" | |
$appDataThemesDir = "$env:APPDATA\Notepad++\themes\" | |
# Check if both directories exist | |
$programFilesThemesExist = Test-Path -Path $programFilesThemesDir | |
$appDataThemesExist = Test-Path -Path $appDataThemesDir | |
# Prompt the user to select the installation directory | |
if ($programFilesThemesExist -and $appDataThemesExist) { | |
$installToProgramFiles = Read-Host "Both 'Program Files' and 'AppData' themes directories exist. Where do you want to install the themes? Enter 'P' for Program Files or 'A' for AppData." | |
$installToProgramFiles = $installToProgramFiles.ToUpper() | |
} elseif ($programFilesThemesExist) { |
To create a three.js page that loads a 3D model, you'll need to do the following steps:
<!DOCTYPE html>
<html>
<head>
<title>Three.js Model Loader</title>
<meta charset="UTF-8">
To add WASD keyboard movement support to the webgl_loader_fbx.html file from the Three.js GitHub repository, you can make the following changes:
controls
variable to the JavaScript code near the top of the file, to store the instance of the THREE.OrbitControls
object:var camera, controls;
init()
function and add the following code after the camera
variable is defined, to instantiate the OrbitControls
object and set some initial values:To add WASD keyboard movement support to the webgl_loader_fbx.html file from the Three.js GitHub repository, you can make the following changes:
controls
variable to the JavaScript code near the top of the file, to store the instance of the THREE.OrbitControls
object:var camera, controls;
init()
function and add the following code after the camera
variable is defined, to instantiate the OrbitControls
object and set some initial values:1 / 1
generate appropriate gauges using gaugeJS and these sensor readings: ``` [ {"label": "CPU1 Temp", "scale": "degrees C", "status": "ok", "current": 37, "lower_critical": 0, "upper_critical": 90, "lower_non_critical": 0, "upper_non_critical": 85, "lower_non_recoverable": 0, "upper_non_recoverable": 90}, {"label": "FAN1", "scale": "RPM", "status": "ok", "current": 3900, "lower_critical": 500, "upper_critical": 25400, "lower_non_critical": 700, "upper_non_critical": 25300, "lower_non_recoverable": 300, "upper_non_recoverable": 25500}, {"label": "12V", "scale": "Volts", "status": "ok", "current": 12.189, "lower_critical": 10.299, "upper_critical": 13.26, "lower_non_critical": 10.74, "upper_non_critical": 12.945, "lower_non_recoverable": 10.173, "upper_non_recoverable": 13.386}, {"label": "Chassis Intru", "scale": "discrete", "status": "0x0000", "current": "0x0", "lower_critical": "na", "upper_critical": "na", "lower_non_critical": "na", "upper_non_critical": "na