#include <Arduino.h>
#include "esp_camera.h"
#define PWDN_GPIO_NUM -1
#define RESET_GPIO_NUM -1
#define XCLK_GPIO_NUM 15
#define SIOD_GPIO_NUM 4
#define SIOC_GPIO_NUM 5
#define Y9_GPIO_NUM 16
#define Y8_GPIO_NUM 17
#define Y7_GPIO_NUM 18
#define Y6_GPIO_NUM 12
#define Y5_GPIO_NUM 10
#define Y4_GPIO_NUM 8
#define Y3_GPIO_NUM 9
#define Y2_GPIO_NUM 11
#define VSYNC_GPIO_NUM 6
#define HREF_GPIO_NUM 7
#define PCLK_GPIO_NUM 13
bool initCamera()
/**
* @param {number[][]} mat
* @param {number[][]} target
* @return {boolean}
*/
var findRotation = function(mat, target) {
const n = mat.length;
// Helper: rotate matrix 90° clockwise
const rotate = (m) => {
const res = Array.from({ length: n }, () => Array(n).fill(0));
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
res[j][n - i - 1] = m[i][j];
}
}
return res;
};
// Try all 4 rotationimport React, { useState, useRef, useEffect } from 'react';
import {
View,
Text,
TouchableOpacity,
Image,
ScrollView,
Animated,
Modal,
} from 'react-native';
import { MaterialIcons, Feather, Ionicons } from '@expo/vector-icons';
import * as ImagePicker from 'expo-image-picker';
import "../global.css";
import TopNav from '../components/topNav.jsx';
import BottomNav from '../components/bottomNav.jsx';
import PersonalInfoModal from '../components/PersonalIexport async function DeleteUpdate(id) {
try {
const token = await AsyncStorage.getItem("access");
if (!token) {
throw new Error("Authentication failed!");
}
const response = await fetch(`${API_URL}/api/updates/deleteupdate/${id}`, {
method: "DELETE",
headers: {
"Authorization": `Bearer ${token}`,
}
});
if (response.ok) {
return { success: true };
#define TINY_GSM_MODEM_SIM800
#include <TinyGsmClient.h>
#include <HardwareSerial.h>
#include <Arduino.h>
// Define pins for SIM800
// ESP32 RX (connects to SIM800 TX) -> GPIO 17
// ESP32 TX (connects to SIM800 RX) -> GPIO 16
#define SIM800_RX_PIN 17
#define SIM800_TX_PIN 16
// APN data
const char APN[] = "internet.vivacom.bg"; // CHANGED TO VIVACOM APN because SIM is Vivacom
const char APN_USER[] = "VIVACOM";
const char APN_PASS[] = "VIVACOM";
// SpringBoot server data
const char POST_HOST[export async function EditUpdate(id) { // Patch updates
try {
const token = await AsyncStorage.getItem("access");
if (!token) {
throw new Error("Authentication failed!");
}
const response = await fetch(`${API_URL}/api/updates/updateupdate/${id}`, {
method: "PATCH",
headers: {
"Authorization": `Bearer ${token}`,
"Content-Type": "application/json"
}
});
export async function GetUpdate(id) { // GET one fetch
try {
const response = await fetch(`${API_URL}/api/updates/getupdate/${id}`, {
method: "GET",
});
if (response.ok) {
const data = await response.json();
return data;
} else {
throw new Error("Failed to get update");
}
} catch (error) {
console.error('Error fetching update:', error);
throw error;
}
}export async function GetUpdates() { // GET many fetch
try {
const response = await fetch(`${API_URL}/api/updates/getall`, {
method: "GET",
});
if (response.ok) {
const data = await response.json();
return data;
} else {
throw new Error("Failed to get updates");
}
} catch (error) {
console.error('Error fetching updates:', error);
throw error;
}
}export async function AddUpdate(title, article, image) {
try {
const token = await AsyncStorage.getItem("access");
if (!token) {
throw new Error("Authentication failed!");
}
const formData = new FormData();
formData.append('title', title);
formData.append('article', article);
const response = await fetch(`${API_URL}/api/updates/createupdate`, {
method: "POST",
headers: {
export async function AddUpdate(title, article, image) {
try {
const token = await AsyncStorage.getItem("access");
if (!token) {
throw new Error("Authentication failed!");
}
if (!image) {
throw new Error("Image is required!");
}
const formData = new FormData();
formData.append('title', title);
formData.append('article', article);
formData.append('image', {
ur# Build Mastra.ai Digital Agency with Multi-Agent System (Long-Horizon, Production-Oriented)
# Execution Mode: Long-Horizon Builder (GPT-5.4)
You are building this as a multi-week production system, not a quick prototype.
## Operating Rules
1. Plan before coding:
- Produce a phased implementation plan with milestones, dependencies, and risks.
- Keep a living task board in markdown (`docs/plan.md`) and update progress continuously.
2. Work in vertical slices:
- For each slice, implemfunction Add-SecureBootUEFISignatureList {
<#
.SYNOPSIS
Gets details about the UEFI Secure Boot-related variables.
.DESCRIPTION
Gets details about the UEFI Secure Boot-related variables (db, dbx, kek, pk).
.PARAMETER Variable
The UEFI variable to retrieve (defaults to db)
.EXAMPLE
Get-UEFISecureBootCerts
.EXAMPLE
Get-UEFISecureBootCerts -db
.EXAMPLE
Get-UEFISecureBootCerts -dbx
.LINK
https://oofhours.com/2021/01/19/uefi-secure-boot-who-c#include <Arduino.h>
#include <Wire.h>
void setup()
{
Serial.begin(115200);
Wire.begin(8, 9); // SDA=8, SCL=9
Serial.println("I2C Scanner...");
for (byte address = 1; address < 127; address++)
{
Wire.beginTransmission(address);
byte error = Wire.endTransmission();
if (error == 0)
Serial.printf("Device found at: 0x%02X\n", address);
}
Serial.println("Scan complete.");
}
void loop() {}
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/**
* @param {number[][]} grid
* @param {number} x
* @param {number} y
* @param {number} k
* @return {number[][]}
*/
var reverseSubmatrix = function(grid, x, y, k) {
// We are flipping a kxk square whose top-left corner is (x, y)
// A vertical flip means reversing the order of its rows.
// 'top' starts at the first row of the square
let top = x;
// 'bottom' starts at the last row of the square
let bottom = x + k - 1;
// Continue swapping rows until the pointe# Neo4j AuraDB — Command Reference
## Connection Details
| Property | Value |
|----------------|----------------------------------------|
| **Database** | dev |
| **Username** | neo4j |
| **Password** | jepVtKm1rOwlmNeDEQMqo4eani96Ig21vFab8oMw8Jo |
| **URI** | `neo4j+s://0435400a.databases.neo4j.io` |
### Connecting to the Server
```cypher
:server connect
```
---
## 1. Ba