Skip to content

Instantly share code, notes, and snippets.

View jschuur's full-sized avatar
⌨️
Coding lots again

Joost Schuur jschuur

⌨️
Coding lots again
View GitHub Profile
@jschuur
jschuur / twitch_tags.json
Last active June 16, 2023 10:30
All Twitch tags, as of December 24th, 2021
[
{
"id": "621fb5bf-5498-4d8f-b4ac-db4d40d401bf",
"isAuto": false,
"name": "1 Credit Clear",
"description": "For streams with an emphasis on completing a coin-op arcade game without using any continues"
},
{
"id": "e629f79f-a7ce-4934-a392-2495cbab7010",
"isAuto": false,
@jschuur
jschuur / update_expired_access_token.js
Last active July 14, 2021 10:38
Automatically update expired OAuth access tokens when making Postman API requests
// How to automatically refresh a bearer token in Postman API client requests when it's expired.
// This pre-request script (https://learning.postman.com/docs/writing-scripts/pre-request-scripts/)
// checks if an access token exists and is not expired, otherwise it will request a new one. It then
// saves it with the expiration date, so it can check against that before the next request.
// Add this at the collection level to apply to all API requests within that collection. Set your
// collection authorization to 'Bearer Token' and the token to '{{access_token}}' and use 'inherit
// auth from parent' for the individual request authorization setting.
@jschuur
jschuur / NOTES.md
Last active June 13, 2020 10:56
Web Development Notes
@jschuur
jschuur / 01_upcoming_video.json
Last active December 23, 2022 01:52
YouTube API video states for videos before, during and after a premiere. Note the liveBroadcastContent and liveStreamingDetails fields.
{
"kind": "youtube#videoListResponse",
"etag": "\"Dn5xIderbhAnUk5TAW0qkFFir0M/PmyFcfudY-pRuyR1eE-yWB5uLE4\"",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
},
"items": [
{
"kind": "youtube#video",
@jschuur
jschuur / README.md
Last active December 9, 2019 10:20
ESNext, TypeScript, Babel, Parcel setup for a Node project

ESNext, TypeScript, Babel, Parcel setup instructions for a Node project

Add dev dependencies:

npm i -D @babel/core @babel/node @babel/preset-env @babel/preset-typescript typescript nodemon parcel

Add the following NPM scripts:

 "start": "node dist/index.js",
Verifying that +joostschuur is my openname (Bitcoin username). https://onename.io/joostschuur
@jschuur
jschuur / gist:1631787
Created January 18, 2012 07:27
unsopa Wikipedia
javascript:(function(){document.getElementById('mw-sopaOverlay').style.display="none";document.getElementById('mw-panel').style.display="block";document.getElementById('content').style.display="block";document.getElementById('mw-head').style.display="block";document.getElementById('mw-panel').style.display="block";document.getElementById('mw-head-base').style.display="block";document.getElementById('mw-page-base').style.display="block";})();