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
// Launch Options | |
// +exec autoexec.cfg -novid -high +cl_forcepreload 1 | |
//Movement Keys | |
exec movement.cfg | |
// Crosshair | |
exec crosshair.cfg | |
donk // set crosshair to donk |
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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define MAX_INPUT_SIZE 1000 // Adjust as needed | |
#define MAX_ARRAY_SIZE 1000 | |
// Fast input handling |
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
#!/bin/bash | |
# Function to parse boot and shutdown times and calculate uptime for each session | |
calculate_daily_uptime() { | |
header_skipped=false | |
journalctl --list-boots --reverse | while read -r line; do | |
if [[ "$header_skipped" = false ]]; then | |
header_skipped=true | |
continue | |
fi |
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
def sliding_slices(size: int, kernel: int, stride: Optional[int] = None) -> slice: | |
"""sliding_slices. | |
Args: | |
size (int): Max size of the conteiner. | |
kernel (int): Sliding window size. | |
stride (Optional[int]): Stride of the kernel. | |
Returns: | |
slice: Slided slice. | |
Note: If the size is not perfectly divisible by the kernel size, the | |
last slice will be corrected to finish perfectly on the size value. |