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 | |
CURRENT_ZOOM="" | |
for (( ; ; )) | |
do | |
eval $(xdotool getmouselocation --shell) | |
if [[ $Y -gt 2160 ]] | |
then | |
if [[ "$CURRENT_ZOOM" != "1.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
// gcc -std=c++17 -lstdc++ -otest main.cpp && ./test | |
#include <array> | |
#include <cstdio> | |
#include <string> | |
// interface for one individual menu entry | |
class MenuItem { | |
public: | |
virtual void render() = 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
class BldcHelper { | |
public: | |
BldcHelper(volatile const uint16_t &dc, const int &offsetdc, AverageHelper<float> ¤tAvg, __IO uint32_t &BDT, | |
const __IO uint32_t &IDR_u, uint16_t hall_u_pin, const __IO uint32_t &IDR_v, uint16_t hall_v_pin, const __IO uint32_t &IDR_w, uint16_t hall_w_pin, | |
__IO uint32_t &TIM_U, __IO uint32_t &TIM_V, __IO uint32_t &TIM_W) : | |
m_dc(dc), | |
m_offsetdc(offsetdc), | |
m_currentAvg(currentAvg), | |
m_BDT(BDT), | |
m_IDR_u(IDR_u), |
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
<html> | |
<head> | |
<style> | |
dl { | |
display: grid; | |
grid-template-columns: max-content auto; | |
} | |
dt { | |
grid-column-start: 1; |
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 <QCoreApplication> | |
#include <QIODevice> | |
#include <QDebug> | |
/** Dont forget to set QT += core multimedia **/ | |
#include <QtMultimedia/QAudioFormat> | |
#include <QtMultimedia/QAudioDeviceInfo> | |
#include <QtMultimedia/QAudioOutput> | |
/** | |
* @brief Interface class for all byte beat musicals |
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
var sessionId = 'fill this'; | |
function deleteNode(nodeId, callback) { | |
$.ajax({ | |
url: 'https://www.amazon.de/drive/v1/nodes/' + nodeId, | |
type: 'DELETE', | |
contentType: 'application/json', | |
dataType: 'json', | |
data: JSON.stringify({ resourceVersion: 'V2', ContentType: 'JSON', recurse: 'true' }), | |
headers: { |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Threading; | |
using Newtonsoft.Json; |