Skip to content

Instantly share code, notes, and snippets.

View rmdias's full-sized avatar

Rodolfo Dias rmdias

View GitHub Profile
@rmdias
rmdias / PS5_hunter.js
Last active March 1, 2021 11:17
It goest to Media Market and Saturn, and verify if the PS5 is still out of stock
const timeout = 2000;
/// <reference types="cypress" />
describe("Hunt for PS5 in Saturn", () => {
it("should visit Saturn and check if PS5 is still out of stock", () => {
cy.visit("https://www.saturn.de/de/shop/playstation5.html").then(() => {
if (cy.get(".gdpr-cookie-layer__container", { timeout })) {
cy.get(".gdpr-cookie-layer__btn--submit--all").click({ timeout });
}
@rmdias
rmdias / speech.js
Last active December 7, 2018 14:35
Speech Recognition
const SpeechRecognition = webkitSpeechRecognition;
const SpeechGrammarList = webkitSpeechGrammarList;
const SpeechRecognitionEvent = webkitSpeechRecognitionEvent;
const recognition = new SpeechRecognition();
const speechRecognitionList = new SpeechGrammarList();
recognition.grammars = speechRecognitionList;
recognition.lang = 'pl-PL';
recognition.continuous = true;
@rmdias
rmdias / gist:5718691
Last active December 18, 2015 03:29
Grunt.JS-Get-Started

Grunt.JS Get-Started

O passo a passo de como configurar o Grunt.JS

Primeiros passos

Pré-requisitos: Você precisa ter instalado
-> NodeJS