Open 2 browsers and paste this code to the console
const peerConnection = new RTCPeerConnection();
peerConnection.onicecandidate = (e) => {
console.log("Peer A onicecandidate", peerConnection.localDescription);
};
// for multiple requests | |
let isRefreshing = false; | |
let failedQueue = []; | |
const processQueue = (error, token = null) => { | |
failedQueue.forEach(prom => { | |
if (error) { | |
prom.reject(error); | |
} else { | |
prom.resolve(token); |
'use strict'; | |
const crypto = require('crypto'); | |
const AES_METHOD = 'aes-256-cbc'; | |
const IV_LENGTH = 16; // For AES, this is always 16, checked with php | |
const password = 'lbwyBzfgzUIvXZFShJuikaWvLJhIVq36'; // Must be 256 bytes (32 characters) | |
function encrypt(text, password) { |
const generateCSV = () => { | |
const wb = XLSX.utils.book_new() | |
const ws = XLSX.utils.json_to_sheet([{ a: 1, b: 2 }]) | |
XLSX.utils.book_append_sheet(wb, ws, 'test') | |
XLSX.writeFile(wb, 'test.csv') | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Iframe</title> | |
</head> | |
<body> | |
<button>Botão</button> | |
<script type="text/javascript"> |
# https://gitlab.com/help/ci/quick_start/README | |
# https://docs.gitlab.com/ee/ci/introduction/ | |
# https://docs.gitlab.com/ee/ci/yaml/ | |
image: dpolyakov/docker-node-latest-with-rsync:latest | |
# before_script: | |
# - apt-get update -qq | |
# - apt-get install -qq git |
#!/bin/bash | |
# | |
# This script will remove all node modules | |
# | |
# Author: Lafif Astahdziq | |
# https://lafif.me | |
# | |
FOLDER_ROOT=${1:-.} # default to current directory |
const mix = require('laravel-mix'); | |
const url = 'http://lab.tinypixel.test'; | |
const app = './src'; | |
const config = './config'; | |
const resources = './resources'; | |
const assets = './resources/assets'; | |
const dist = './dist'; | |
const externals = { |