- &subset=latin-ext - fonty
- link na "další" v krocích, jak postupovat
- smoothscroll pryc
View Arduino-like.cpp
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 <Arduino.h> | |
#include "roboruka.h" | |
void setup() | |
{ | |
Robot.begin(); | |
printf("Robot nastartovan!\n"); | |
} |
View printf.cpp
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 <Arduino.h> | |
#include <FreeRTOS.h> | |
#include <sstream> | |
#include <mutex> | |
//static std::mutex m; | |
template <typename T> | |
void testPrintf(void *fmt) | |
{ |
View stringstream_crash.cpp
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 <freertos/FreeRTOS.h> | |
#include <freertos/task.h> | |
#include <sstream> | |
static void task(void *) | |
{ | |
std::stringstream ss; | |
while (1) | |
sleep(1); |
View authenticator_gen_qr.py
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
#!/usr/bin/env python3 | |
# pip3 install --user qrcode[pil] | |
import qrcode | |
import argparse | |
import sqlite3 | |
import os | |
from urllib.parse import quote |
View ui.cpp
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
void setup() { | |
// Na začátku je UI v "builder" módu | |
UI.button(0, 0, 4, 1, "test") | |
.color("red") | |
.background("blue") | |
.onPress([]() { | |
printf("pressed!\n"); | |
}) | |
.onRelease([]() { | |
printf("released!\n"); |
View gouname.go
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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
"unsafe" | |
) |
View gen_uri_linux.patch
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
--- GenRegisterJebUriScheme.py.orig 2020-01-08 09:41:43.260903761 +0100 | |
+++ GenRegisterJebUriScheme.py 2020-01-08 14:15:01.278159846 +0100 | |
@@ -1,7 +1,7 @@ | |
''' | |
Generate a platform-dependant script used to register the custom URI handler 'jeb:', | |
which can be used to execute JEB from other applications. | |
-TODO: only Windows is implemented; add Linux and macOS | |
+TODO: only Windows and Linux is implemented; add macOS | |
How to use: |
View btrfs-delete-missing-workaround-4.7.4.diff
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
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c | |
index 864cf3b..bd10a1d 100644 | |
--- a/fs/btrfs/disk-io.c | |
+++ b/fs/btrfs/disk-io.c | |
@@ -3588,6 +3588,8 @@ int btrfs_calc_num_tolerated_disk_barrier_failures( | |
int num_tolerated_disk_barrier_failures = | |
(int)fs_info->fs_devices->num_devices; | |
+ return num_tolerated_disk_barrier_failures; | |
+ |
View gist:5a880428189e4aa8f9cf
View goidos-api.md
Hledání spojení:
{
"carrier": "IDSJMK",
"from": "Hlavní nádraží",
"to": "Životského",
"via": [ "foo", "bar" ],
"time": {
"type": "departure",
NewerOlder