Skip to content

Instantly share code, notes, and snippets.

View 0xFEEDC0DE64's full-sized avatar

Daniel Brunner 0xFEEDC0DE64

View GitHub Profile
#!/bin/bash
CURRENT_ZOOM=""
for (( ; ; ))
do
eval $(xdotool getmouselocation --shell)
if [[ $Y -gt 2160 ]]
then
if [[ "$CURRENT_ZOOM" != "1.0" ]]
// 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;
class BldcHelper {
public:
BldcHelper(volatile const uint16_t &dc, const int &offsetdc, AverageHelper<float> &currentAvg, __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),
@0xFEEDC0DE64
0xFEEDC0DE64 / softwarelist.php
Last active February 18, 2019 21:57
small utility to manage software versions
<html>
<head>
<style>
dl {
display: grid;
grid-template-columns: max-content auto;
}
dt {
grid-column-start: 1;
@0xFEEDC0DE64
0xFEEDC0DE64 / byte-beat.cpp
Created October 14, 2017 12:59
Byte beat collection wrapped into general interface and Qt player (windows & linux compatible!)
#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
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: {
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;