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
<?php | |
if(array_key_exists("s", $_GET)) { | |
$expr_get = $_GET["s"]; | |
} else { | |
$expr_get = ""; | |
} | |
function search($expr) { | |
$db = new SQLite3('socky.sqlite'); |
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"); | |
} |
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); |
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) | |
{ |
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 |
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"); |
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" | |
) |
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
<?xml version="1.0" ?><manifest> | |
<include name="base-jb.xml"/> | |
<remote fetch="git://github.com/Tasssadar/" name="tasssadar"/> | |
<default remote="caf" revision="refs/tags/android-4.3_r2.1" sync-j="4"/> | |
<!-- flo specific things --> | |
<project name="android_device_asus_flo" path="device/asus/flo" remote="tasssadar" revision="b2g-4.3_r2.1" /> | |
<project name="device/generic/armv7-a-neon" path="device/generic/armv7-a-neon"/> |
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; | |
+ |