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
import unittest | |
from a1 import * | |
class TestA1Functions(unittest.TestCase): | |
def test_seconds_difference(self): | |
self.assertEqual(seconds_difference(1800.0, 3600.0), 1800.0) | |
self.assertEqual(seconds_difference(3600.0, 1800.0), -1800.0) | |
self.assertEqual(seconds_difference(1800.0, 2160.0), 360.0) | |
self.assertEqual(seconds_difference(1800.0, 1800.0), 0.0) |
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
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0043", GROUP="users", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0001", GROUP="users", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="users", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="ee18", GROUP="users", MODE="0666" |
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
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
function required() { | |
hash "${1}" 2>/dev/null || { echo >&2 "${1} is required but is not installed. Aborting."; exit 1; } | |
} | |
required wget | |
required unzip |
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
-- Basic Settings | |
-- cl_fov = 90 | |
-- pl_movement.power_sprint_targetFov = 90 | |
-- r_DrawNearFoV = 90 | |
Con_Restricted = 0 | |
r_Fullscreen = 0 | |
r_FullscreenPreemption = 1 | |
r_FullscreenWindow = 1 | |
-- Anti-Aliasing |
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
<ActionMaps version="1"> | |
<CustomisationUIHeader label="decopled" description="" image=""> | |
<devices> | |
<keyboard instance="1"/> | |
</devices> | |
</CustomisationUIHeader> | |
<options type="keyboard" instance="1"/> | |
<actionmap name="spaceship_movement"> | |
<action name="v_decoupled_strafe_up"> | |
<rebind defaultInput="r" device="keyboard" input="w"/> |
NewerOlder