Skip to content

Instantly share code, notes, and snippets.

View mikaeldui's full-sized avatar
🏢
Working on something

Mikael Dúi Bolinder mikaeldui

🏢
Working on something
View GitHub Profile
@bangingheads
bangingheads / example.js
Last active April 14, 2022 13:47
Using Cloudflare Workers to Make Requests to Riot Games API
/*
Cloudflare Workers Script to make request to the Riot Games API
By: BangingHeads
Supports GET Requests
Supports Path and GET Parameters as GET Parameters
Example path: https://example.bangingheads.workers.dev/api/?region=na1&endpoint=/lol/summoner/v4/summoners/by-name/{summonerName}&summonerName=Headbang
Use Guide on Hextech Docs (https://hextechdocs.dev) if you need more help
*/
@mikaeldui
mikaeldui / RiotGamesApiProxyWorker.js
Last active February 2, 2022 18:02
Riot Games API proxy on Cloudflare Workers
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
/**
* Many more examples available at:
@marciol
marciol / p2p-list.md
Created February 3, 2016 19:45 — forked from moshest/p2p-list.md
A collection of peer-to-peer decentralized projects.
@gmazzap
gmazzap / amu.php
Created April 17, 2014 03:37
Attach My Upload is a WordPress plugin that allow to create an attachment post from a file already uploaded to uploads folder. Was wrote to answer a WPSE question here: http://wordpress.stackexchange.com/questions/141509/
<?php
/**
* Plugin Name: Attach My Upload
* Description: Allow to create an attachment post from a file already uploaded to uploads folder.
* Plugin URI: http://wordpress.stackexchange.com/questions/141509/
* Author: G. M.
* Author URI: http://wordpress.stackexchange.com/users/35541/g-m
*
*/
/*