- Download ATmega's support pack from Microchip's website
- Unzip the relevant files
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
/* | |
* This function assumes the existence of an active Dear ImGui window | |
*/ | |
void RenderDropShadow(ImTextureID tex_id, float size, ImU8 opacity) | |
{ | |
ImVec2 p = ImGui::GetWindowPos(); | |
ImVec2 s = ImGui::GetWindowSize(); | |
ImVec2 m = {p.x + s.x, p.y + s.y}; | |
float uv0 = 0.0f; // left/top region | |
float uv1 = 0.333333f; // leftward/upper region |
#include "imgui_internal.h" | |
int rotation_start_index; | |
void ImRotateStart() | |
{ | |
rotation_start_index = ImGui::GetWindowDrawList()->VtxBuffer.Size; | |
} | |
ImVec2 ImRotationCenter() | |
{ |
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/ | |
# Digital ocean on a mongodb service: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 | |
[Unit] | |
Description=Run SystemD as users | |
After=network.target | |
[Service] | |
Type=simple | |
User=[USER HERE] | |
WorkingDirectory=[USER HOME] |
#!/bin/sh | |
PREFIX=$HOME/wayland-install | |
aptitude update | |
aptitude install build-essential autoconf automake libtool libpthread-stubs0-dev git-core libx11-dev x11proto-dri2-dev x11proto-gl-dev libxext-dev libxxf86vm-dev libxdamage-dev libxfixes-dev libexpat1-dev libxt-dev libxi-dev libxmu-dev libudev-dev libgl1-mesa-dev libx11-xcb-dev libxcb-render0-dev libpng-dev libpixman-1-dev python libffi-dev libgdk-pixbuf-dev libglib2.0-dev libpoppler-glib-dev | |
aptitude build-dep mesa | |
wget http://cgit.freedesktop.org/mesa/drm/snapshot/drm-2.4.15.tar.gz | |
tar -xzf drm-2.4.15.tar.gz |
#!/bin/bash -e | |
# /usr/local/sbin/raspi-monitor | |
# Script to enable and disable the HDMI signal of the Raspberry PI | |
# Inspiration: http://www.raspberrypi.org/forums/viewtopic.php?t=16472&p=176258 | |
CMD="$1" | |
function on { | |
/opt/vc/bin/tvservice --preferred |
#!/bin/sh | |
# Enable and disable HDMI output on the Raspberry Pi | |
is_off () | |
{ | |
tvservice -s | grep "TV is off" >/dev/null | |
} | |
case $1 in |
#include <filesystem> | |
#include <imgui.h> | |
#define BIT(x) (1 << x) | |
std::pair<bool, uint32_t> DirectoryTreeViewRecursive(const std::filesystem::path& path, uint32_t* count, int* selection_mask) | |
{ | |
ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth; | |
bool any_node_clicked = false; |
// Original code: https://gist.github.com/syzdek/eba233ca33e1b5a45a99 | |
// Original code license: | |
/* | |
* TOTP: Time-Based One-Time Password Algorithm | |
* Copyright (c) 2015, David M. Syzdek <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: |
#define EGL_EGLEXT_PROTOTYPES | |
#define GL_GLEXT_PROTOTYPES | |
#include <EGL/egl.h> | |
#include <EGL/eglext.h> | |
#include <errno.h> | |
#include <gbm.h> | |
#include <GL/gl.h> | |
#include <xf86drm.h> | |
#include <xf86drmMode.h> | |
#include <stdlib.h> |
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \