This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <ESPAsyncWebServer.h> | |
#include <SPIFFS.h> | |
#include <WebSocketsServer.h> | |
const uint8_t ledPin = 2; | |
AsyncWebServer server(80); | |
WebSocketsServer websockets(81); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$paragraph_item = Paragraph::create([ | |
'type' => 'html', | |
'title' => 'Testing', | |
'field_texto_largo_con_formato' => 'body test', | |
]); | |
$paragraph_item->save(); | |
$paragraph_w = ParagraphWrapper::create([ | |
'type' => 'html', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', [ | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |