Skip to content

Instantly share code, notes, and snippets.

View reeceatkinson's full-sized avatar
🛠️
Building Experiences

Reece Atkinson reeceatkinson

🛠️
Building Experiences
View GitHub Profile
@reeceatkinson
reeceatkinson / test.js
Last active November 3, 2023 22:53
ABC_ARC-RA
function measureSpeed() {
fetch('https://fast.com/speedtest/').then(response => {
return response.text();
}).then(data => {
const match = data.match(/speed-results-primary.*?(\d+\.\d+)/);
if (match) {
const downloadSpeed = match[1];
console.log('Download speed: ' + downloadSpeed + ' Mbps');
} else {
console.log('Speed test failed.');
const options = {
method: 'POST',
headers: {
Authorization: 'Bearer API_KEY_HERE',
"Content-Type": 'application/json'
},
body: JSON.stringify({
"project": "upmeet",
"title": "Website Analytics",
"value": "Analytic Total",
name: Log Release
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
@reeceatkinson
reeceatkinson / container-replace.js
Created October 28, 2021 10:25
Replacing Containers with JS
document.getElementById("pricing").innerText = "Hello World"