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
obj-m := library.o | |
default: | |
$(MAKE) -C /home/matwey/lab/linux/ M=$(PWD) modules | |
builtin: | |
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
$(MAKE) -C /home/matwey/lab/linux/ M=$(PWD) clean |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/mman.h> |
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
# nm qe | |
400.0000 35.1122 | |
401.0000 35.1142 | |
402.0000 35.2593 | |
403.0000 35.3961 | |
404.0000 35.7155 | |
405.0000 35.7028 | |
406.0000 35.8889 | |
407.0000 36.0927 | |
408.0000 36.2966 |
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
# nm qe | |
400.0000 35.1122 | |
401.0000 35.1142 | |
402.0000 35.2593 | |
403.0000 35.3961 | |
404.0000 35.7155 | |
405.0000 35.7028 | |
406.0000 35.8889 | |
407.0000 36.0927 | |
408.0000 36.2966 |
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
cmake_minimum_required (VERSION 3.1) | |
project(checkcheck LANGUAGES C CXX VERSION 0.1.0) | |
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | |
set(CMAKE_C_STANDARD 99) | |
include(CheckSymbolExists) | |
include(GNUInstallDirs) | |
include(GenerateExportHeader) |
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
#include <iostream> | |
#include <vulkan/vulkan.h> | |
#include "sample.h" | |
int main(int argc, char** argv) { | |
VkResult result = VK_SUCCESS; | |
VkApplicationInfo app_info{}; | |
VkInstanceCreateInfo create_info{}; |
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/sh | |
set -x | |
set -e | |
curl 'https://www.radiorus.ru/brand/57083/episodes/json?offset=0' 2>/dev/null | jq -r '.episodes | .[] | .audioIds[0].sources.download' | wget -c --content-disposition --read-timeout=15 -i - |
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
#!/usr/bin/env python | |
import time | |
import gatt | |
manager = gatt.DeviceManager(adapter_name='hci0') | |
def array2raw(arr): | |
raw = b"".join(map(lambda x: x.to_bytes(1, byteorder='big'), arr)) | |
return raw |
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
#!/usr/bin/env python3 | |
import numpy as np | |
from sklearn.ensemble import IsolationForest | |
# Need skl2onnx 1.7.1+ | |
from skl2onnx import convert_sklearn | |
from skl2onnx import to_onnx | |
rng = np.random.default_rng() |
NewerOlder