Skip to content

Instantly share code, notes, and snippets.

View aranajhonny's full-sized avatar
🏠
Working from home

Jhonny aranajhonny

🏠
Working from home
  • Sky
  • 00:26 (UTC -05:00)
View GitHub Profile

Entiendo tu proyecto. Vamos a crear un sketch de Arduino para un ESP32 que cumpla con tus requerimientos. Te proporcionaré un código base que puedes adaptar según tus necesidades específicas. Aquí está el código:

#include <IRremote.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <BluetoothSerial.h>

#define IR_RECEIVE_PIN 15  // Pin del receptor IR
Thought: To create a comment in a Github issue, I need to use the Github API and the createComment action available in the membrane-driver-github program.
Action:
```json
{
"name": "Issue.createComment",
"params": [
{"name": "body", "value": "This is a test comment"}
],
"programName": "github"
❯ node index.mjs "add clean the bed"
Thought: I need to add a new task to the list
Action: Task.update
Action Input: {"title": "Clean the bed", "dueDate": ""}
Observation: {"title": "Clean the bed", "dueDate": "", "completed": false}
Thought: The task has been added successfully
Final Answer: The task "Clean the bed" has been added to the list.
❯ node index.mjs "update a task called 'clean the bed'"
Thought: I need to provide the new information for the task, such as the new title and due date.
babyagi on  main [✘] via 🐍 v2.7.18 took 2m4s
❯ ./babyagi.py
*****OBJECTIVE*****
create a simple web in next.js for my about page
*****TASK LIST*****
1: Install next.js
babyagi on  main [✘] via 🐍 v2.7.18 took 11s
❯ ./babyagi.py
*****OBJECTIVE*****
create a pasta carbonara recipe for me
*****TASK LIST*****
1: Develop a task list
import { nodes, root, state } from "membrane";
state.game = state.game ?? {};
export const Root = {
setup() {
const board = Array.from({ length: 3 }, () => Array.from({ length: 3 }, () => ""));
const turn = "X";
let winner: any = null;
let resolve: any = null;
export const RepositoryCollection = {
...
allItems: async ({ self, args }) => {
// const repo = await $iter2(self, `{ name, description }`, { pageSize: 3 })[Symbol.asyncIterator]();
// console.log(JSON.stringify(await repo.next()));
// console.log(JSON.stringify(await repo.next()));
const repos: any[] = []
for await (const repo of $iter(self, `{ name, description }`, { pageSize: 3 })) {
repos.push(repo);
@aranajhonny
aranajhonny / log.json
Created January 20, 2023 21:50
airtable payloads
curl "https://api.airtable.com/v0/bases/appIsMKU3ivlNSLIY/webhooks/achdi5qXRSsHhWgXa/payloads" \
-H "Authorization: Bearer patlDJbeuJPMIXA0Y.852fddb5d548a37f975e284dc008c7e43af540c2b695d55de2dad96a90b85ca6" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13730 100 13730 0 0 15766 0 --:--:-- --:--:-- --:--:-- 15817
{
"payloads": [
{
"timestamp": "2023-01-20T21:40:15.026Z",
"baseTransactionNumber": 2573,
@aranajhonny
aranajhonny / interval.js
Created September 17, 2020 21:54 — forked from ncou/interval.js
setTimeout and setInterval with pause and resume
// http://stackoverflow.com/questions/7279567/how-do-i-pause-a-window-setinterval-in-javascript
function RecurringTimer(callback, delay) {
var timerId, start, remaining = delay;
this.pause = function() {
window.clearTimeout(timerId);
remaining -= new Date() - start;
};
This file has been truncated, but you can view the full file.
object(stdClass)#4 (7) {
["nombre_cliente"]=>
string(4) "dace"
["apellido_cliente"]=>
string(6) "dasdas"
["mail_cliente"]=>
string(7) "dasdasd"
["telefono_cliente"]=>
string(6) "dasdas"
["id_tipo_cliente"]=>