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
find . -type f -name '*.hpp' -o -name '*.cpp' | xargs awk 'FNR==1 && NR>1 {print ""} {print}' >> out.txt |
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
BUILD_opencv_rgbd OFF | |
BUILD_opencv_python3 OFF | |
BUILD_opencv_python_bindings_generator OFF | |
BUILD_opencv_python_tests OFF | |
OPENCV_ALLOCATOR_STATS_COUNTER_TYPE int64_t |
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 "FWRuleIO.hpp" | |
FWRuleIO::FWRuleIO(const string& filename) { | |
fWrite.open((const char *) filename.c_str(), ios::out | ios::app); | |
fRead.open((const char *) filename.c_str(), ios::in); | |
} | |
FWRuleIO::~FWRuleIO() { | |
fWrite.close(); | |
fRead.close(); |
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 <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/vmalloc.h> | |
#include <linux/netfilter.h> | |
#include <linux/proc_fs.h> /* Необходимо для работы с файловой системой /proc */ | |
#include <asm/uaccess.h> /* определения функций get_user и put_user */ | |
#include "neth.h" | |
MODULE_LICENSE("GPL"); |
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
/* | |
* main.c | |
* | |
* Created on: Sep 15, 2019 | |
* Author: khoben | |
*/ | |
#include <linux/module.h> | |
#include <linux/string.h> | |
#include <linux/fs.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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/netfilter.h> | |
#include <linux/netfilter_ipv4.h> | |
#include <linux/ip.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> | |
#include <linux/uaccess.h> | |
MODULE_LICENSE("GPL"); |
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
mtype = {new_task, task_comp, done}; | |
byte taskOpen = 0; | |
byte taskClose = 0; | |
chan c_client = [0] of {mtype}; | |
chan c_chair = [0] of {mtype}; | |
chan c_hr = [0] of {mtype}; | |
chan c_worker = [0] of {mtype}; |
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 subprocess | |
import re | |
def percentTodBm(quality): | |
return (quality / 2) - 100 | |
def getSSID(): | |
results = subprocess.check_output( |
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
{ | |
"editor.fontFamily": "Hack, 'Hack', monospace", | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.renderWhitespace": "boundary", | |
"editor.cursorBlinking": "phase", | |
"python.linting.enabled": false, | |
"python.linting.enabledWithoutWorkspace": false, | |
"python.formatting.formatOnSave": true, | |
"python.linting.pylintEnabled": false, | |
"editor.fontWeight": "bold" |
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
elif c["data"]=="Посмотреть текущие скидки": | |
appendUserPath(c["message"]["chat"]["id"], c["data"]) | |
text="<b>Текущие скидки</b>\n" | |
sales_list=getSalesList() | |
sales_list="<pre>"+sales_list+"</pre>" | |
bot.edit_message_text( | |
chat_id=c["message"]["chat"]["id"], |
NewerOlder