npm init -y
create folder server and file index.js inside, with contents:
const express = require("express");
| config = { //SAMPLE OBJECT - replace this with your data object | |
| stroke: 2, //svg stroke value | |
| opacity: 0.3, //0-1 | |
| offsetX: 120, //px | |
| offsetY: 80, | |
| fontWeight: 400, //css font-weight | |
| fontSize: 12, //in px | |
| changePositive: '\u25B4', //unicode character for up arrow | |
| changeNegative: '\u25BE', //unicode character for down arrow | |
| colorBlue: '#1190A3', //all hex colors will automatically use the addColor dat gui function |
| private final Matrix mMatrix = new Matrix(); | |
| private void updateMatrix() { | |
| float mw = this.getWidth(); | |
| float mh = this.getHeight(); | |
| float hw = this.getWidth() / 2.0f; | |
| float hh = this.getHeight() / 2.0f; | |
| float cw = (float)Resources.getSystem().getDisplayMetrics().widthPixels; //Make sure to import Resources package |
| //import puppeteer | |
| import puppeteer from 'puppeteer'; | |
| async function muiSelectOption(page, buttonSelector, optionValue) { | |
| let liComponent; | |
| let selectorSubstr = buttonSelector.substring(1); // Remove the leading '#' or '.' | |
| if (optionValue) { | |
| liComponent = `li[data-value="${optionValue}"]`; | |
| } else { | |
| liComponent = 'li:first-child'; |
| const puppeteer = require('puppeteer'); | |
| async function fillForm(data) { | |
| const browser = await puppeteer.launch({ headless: true }); | |
| const page = await browser.newPage(); | |
| for (const item of data) { | |
| await page.goto('YOUR_WEBPAGE_URL'); // Replace with your webpage URL | |
| // Click the first "Select" button |
| //RRF App Backend | |
| //import node / express dependencies | |
| import express from "express"; | |
| import path from "path"; | |
| //you'll need a '.dotenv' file in the root with the following variable: | |
| //OPENAI_API_KEY="[YOUR_OPENAI_API_KEY_HERE]" | |
| import dotenv from "dotenv"; |
| import { OpenAI } from 'langchain/llms'; | |
| import { initializeAgentExecutorWithOptions } from 'langchain/agents'; | |
| import { SerpAPI } from 'langchain/tools'; | |
| const tools = [ | |
| new SerpAPI( | |
| '[YOUR_API_KEY]' | |
| ), | |
| ]; |
| #include <ESP8266WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <TimeLib.h> | |
| #include <NTPClient.h> | |
| #include <WiFiUdp.h> | |
| #include <Adafruit_NeoPixel.h> | |
| //WIFI | |
| const char* ssid = "[MY_SSID]"; |