Skip to content

Instantly share code, notes, and snippets.

#include <WiFi.h>
#include <ESPAsyncWebServer.h>
#include <SPIFFS.h>
#include <WebSocketsServer.h>
#include <ESP32Servo.h>
#include <ArduinoJson.h>
const uint8_t ledPin = 2;
Servo directionServo; // create servo object to control a servo
@Eduardo-Morales-Alberti
Eduardo-Morales-Alberti / control_led.ino
Last active April 27, 2024 17:49
Control LED Access Point Arduino ESP32
#include <WiFi.h>
#include <ESPAsyncWebServer.h>
#include <SPIFFS.h>
#include <WebSocketsServer.h>
const uint8_t ledPin = 2;
AsyncWebServer server(80);
WebSocketsServer websockets(81);
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *instagram.com/*
// @grant window.open
// @grant window.focus
// @require http://code.jquery.com/jquery-3.4.1.min.js
$paragraph_item = Paragraph::create([
'type' => 'html',
'title' => 'Testing',
'field_texto_largo_con_formato' => 'body test',
]);
$paragraph_item->save();
$paragraph_w = ParagraphWrapper::create([
'type' => 'html',
use Drupal\paragraphs\Entity\Paragraph;
$p_wrapper = \Drupal::entityTypeManager()->getStorage('paragraph_wrapper')->load('17522');
$paragraph_item = Paragraph::create([
'type' => 'html',
'title' => 'Testing',
'field_texto_largo_con_formato' => 'body test',
]);
$paragraph_item->save();
$p_wrapper->set('paragraph_items', [
[
@Eduardo-Morales-Alberti
Eduardo-Morales-Alberti / deletephotos.js
Created March 25, 2018 13:56
Delete all photos from facebook.
var timer = setInterval(() => {
document.querySelector('a[data-tooltip-content="Editar o eliminar"]').click();
setTimeout(() => {
document.querySelector('li[data-label="Eliminar esta foto"] a').click();
setTimeout(() => {
document.querySelector('button.layerConfirm[type="submit"]').click();
}, 1000);
}, 1000);
}, 1000);