m0-M8x4p7NFYhxApLDZZstZfT4VmrLVxTjYgHLYkYhNfunction scheduleOfEventsByDay_uabb_blog_posts_query_args( $args, $settings ) {
if ( in_array( $settings->id, array( 'schedule-day-1', 'schedule-day-2', 'schedule-day-3', 'schedule-day-4', 'schedule-day-5' ) ) ) {
$target_day = explode( '-', $settings->id )[2];
$which_date = get_field( "dates_of_schedule__day_{$target_day}", 'options' );
$date_string = date( 'Ymd', strtotime($which_date) );
$date_year = date( 'Y', strtotime($which_date) );
$args['meta_key'] = 'start_time# Notes
# Welcome to Cacher
We're delighted you've chosen Cacher to be your snippet organizer! Whether you're a solo developer or a member of your team, Cacher is here to help you organize and use snippets more efficiently.
Our users create snippets to:
- Remember project-specific algorithms
- Create cheatsheets for useful libraries
- Share knowledge with colleagues
Take a few minutes to look over our **Getting Started** snippets. To view more detailed information on features, you can visit
<a href="https://app.daily.dev/etmr"><img src="https://api.daily.dev/devcards/v2/gBX1m40KOGWKt2qzARc1q.png?r=yxi&type=wide" width="652" alt="el's Dev Card"/></a>
<a href="https://app.daily.dev/etmr"><img src="https://api.daily.dev/devcards/v2/gBX1m40KOGWKt2qzARc1q.png?type=wide&r=e1t" width="652" alt="el's Dev Card"/></a>
/**
* @param {number} n
* @return {boolean}
*/
var hasAlternatingBits = function(n) {
// Step 1: Shift n right by 1 to align each bit with its neighbor.
// Example: n = 10 (1010), n >> 1 = 5 (0101)
let shifted = n >> 1;
// Step 2: XOR n with its shifted version.
// If n has alternating bits, XOR will produce a sequence of all 1s.
// Example: 1010 ^ 0101 = 1111
let x = n ^ shifted;
// Step 3: Check if x is all 1s.
// A number with all 1s has the property ximport OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const response = await openai.responses.create({
prompt: {
"id": "pmpt_685a3f76760481908057d26c5239b8c301b5a57ddfd41687",
"version": "8",
"variables": {
"insert_request_here": "example insert_request_here",
"insert_rules_here": "example insert_rules_here",
"insert_template_here": "example insert_template_here"
}
}
});javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus@master/userscript/dist/magic-userjs.user.js'].map(s=>document.body.appendChild(document.createElement('script')).src=s)})();
# Agent memory
Agents use memory to maintain context across interactions. LLMs are stateless and don't retain information between calls, so agents need memory to track message history and recall relevant information.
Mastra agents can be configured to store message history, with optional [working memory](https://mastra.ai/docs/memory/working-memory) to maintain recent context, [semantic recall](https://mastra.ai/docs/memory/semantic-recall) to retrieve past messages based on meaning, or [o5332480061872406#include <Arduino.h>
#define SOIL_MOISTURE_SENSOR_PIN 5
// Add this to .ini file: monitor_speed = 115200
// config personaly
int airValue = 2603; // sensor in dry air
int waterValue = 1300; // sensor fully inserted in water
void setup()
{
Serial.begin(115200);
delay(1000);
Serial.println("Starting Soil Moisture Capacitive Sensor V2 initialization...");
}
void loop()
{
int soilMoistureRaw = analogRead(SOIL_MOISTURE_SENSOR_PIN);
// errors check
if (soilMimport { useState } from "react";
function Cart() {
const [cart, setCart] = useState({
items: [],
total: 0,
discount: null,
isLoading: false,
});
const addItem = (item) =>
setCart(prev => ({
...prev,
items: [...prev.items, item],
total: prev.total + item.price,
}));
const removeItem = (id) =>
setCart(prev => {
const item = prev.items.find(i => i.id === id);
return {
...prev,
items: prev.ite/*───────────────────────────────────────────────────────
OBSIDIANOTION
Version 1.1
Created by @diegoeis
Readme:
https://github.com/diegoeis/obsidianotion
────────────────────────────────────────────────────── */
/* @settings
name: Obsidianotion visual control settings
id: custom-diegoeis-obsidianotion
settings:
-
id: Structure
title: Structure of components and areas
type: heading
level: 1
-
id: width-body-content
title: Width of body content.@charset "UTF-8";
/*!
* Materialize v1.0.0 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
.materialize-red {
background-color: #e51c23 !important;
}
.materialize-red-text {
color: #e51c23 !important;
}
.materialize-red.lighten-5 {
background-color: #fdeaeb !important;
}
.materialize-red-text.text-lighten-5 {
color: #fdeaeb !important;
}
.materialize-red.lighten-4 {
background-/**
* @param {number} turnedOn
* @return {string[]}
*/
var readBinaryWatch = function(turnedOn) {
const results = [];
// Helper function to count how many 1-bits are in a number
const bitCount = (num) => {
// Convert to binary string, count the '1' characters
return num.toString(2).split('').filter(bit => bit === '1').length;
};
// Hours range from 0 to 11 (4 LEDs)
for (let hour = 0; hour <= 11; hour++) {
// Pre-calc hour bitcount so we don't// https://playwright.dev/docs/api/class-locator#locator-check
// await radioButton.check();
test("Radio button actions", async ({ page }) => {
await page.goto("https://testautomationpractice.blogspot.com/");
const radioButton = page.getByRole("radio").and(page.locator("#male"));
await radioButton.check();
await expect(radioButton).toBeChecked();
});// https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-checked
// expect(radioButton).toBeChecked();
test("Radio button actions", async ({ page }) => {
await page.goto("https://testautomationpractice.blogspot.com/");
const radioButton = page.getByRole("radio").and(page.locator("#male"));
await radioButton.check();
await expect(radioButton).toBeChecked();
});