git reset HEAD^
# remove commit locally
#!/bin/sh | |
# Installing Tailscale to the Raspberry Pi | |
# https://pimylifeup.com/raspberry-pi-tailscale/ | |
# update the package list and any out-of-date packages | |
sudo apt-get update && sudo apt-get -y upgrade | |
# install needed packages | |
sudo apt install lsb-release curl |
#pragma once | |
#include <windows.h> | |
#include <string> | |
inline std::wstring multi2wide(const std::string& str, UINT codePage = CP_THREAD_ACP) | |
{ | |
if (str.empty()) | |
{ | |
return std::wstring(); |
namespace Vurdalakov | |
{ | |
using System; | |
using System.IO; | |
using SixLabors.ImageSharp; | |
using SixLabors.ImageSharp.Advanced; | |
using SixLabors.ImageSharp.Formats; | |
using SixLabors.ImageSharp.Formats.Png; | |
using SixLabors.ImageSharp.PixelFormats; |
namespace Vurdalakov | |
{ | |
using Microsoft.Win32; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Runtime.InteropServices; | |
public class KeyboardLayout |
.pio\libdeps\seeed_wio_terminal\Seeed Arduino rpcWiFi\src\WebServer.cpp:31:10: fatal error: Seeed_mbedtls.h: No such file or directory
"seeed mbedtls"
in Library Manager)#include
line above #include
#ifndef __COUNTS_PER_MINUTE_H__ | |
#define __COUNTS_PER_MINUTE_H__ | |
class CountsPerMinute | |
{ | |
int m_currentCpm; | |
int m_maximumCpm; | |
int m_intervalsPerMinute; | |
int* m_intervalCounts; | |
int m_currentInterval; |
@echo off | |
echo ----------------------------------------------- increment.bat script ----------------------------------------------- | |
rem ======================================================================================== | |
rem == This script automatically increments build number in "version.h" file. | |
rem == Instructions and more information: | |
rem == http://codeblog.vurdalakov.net/2017/04/autoincrement-build-number-in-arduino-ide.html | |
rem ======================================================================================== | |
setlocal |
-- Removes (and returns) a table element by its key, moving down other elements to close space and decrementing the size of the array | |
function table.removeKey(table, key) | |
local element = table[key] | |
table[key] = nil | |
return element | |
end | |
-- Test | |
printf = function(s, ...) return io.write(s:format(...)) end |
namespace Vurdalakov | |
{ | |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
public static class DateTimeApi | |
{ | |
public static String GetCurrentTimeString(Boolean shortTime) |