Skip to content

Instantly share code, notes, and snippets.

@juaoose
juaoose / index.html
Last active July 5, 2022 21:17
show two streamers in an overlay, it does not use your pull key so it will only show your location when youre live on twitch
<!DOCTYPE html>
<html>
<head>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.2.0/mapbox-gl.js"></script>
<script src="https://unpkg.com/@mapbox/mapbox-sdk/umd/mapbox-sdk.min.js"></script>
<script src="https://mapbox.github.io/mapbox-gl-language/index.js"></script>
<script src="https://unpkg.com/@rtirl/api@latest/lib/index.min.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v2.2.0/mapbox-gl.css"
rel="stylesheet"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juaoose
juaoose / twitch-cli.cmd
Last active February 2, 2023 01:58
Eventsub test with twitch cli
twitch event trigger subscribe --to-user 9660204 --secret yes -F https://us-central1-rtchat-47692.cloudfunctions.net/eventsub
twitch event trigger subscribe-message --to-user 9660204 -F https://us-central1-rtchat-47692.cloudfunctions.net/eventsub --secret
twitch event trigger poll-begin --to-user 9660204 --secret yes -F https://us-central1-rtchat-47692.cloudfunctions.net/eventsub
twitch event trigger poll-end --to-user 9660204 --secret yes -F https://us-central1-rtchat-47692.cloudfunctions.net/eventsub
twitch event trigger poll-progress -i "b0341047-d1a9-fe98-dea3-fe60c0905310" --to-user 9660204 --secret yes -F https://us-central1-rtchat-47692.cloudfunctions.net/eventsub
@juaoose
juaoose / a
Last active April 18, 2022 19:54
"{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Swagger\",\"description\":\"This is a sample server Petstore server. You can find out more about Swagger at [http:\/\/swagger.io](http:\/\/swagger.io) or on [irc.freenode.net, #swagger](http:\/\/swagger.io\/irc\/). For this sample, you can use the api key `special-key` to test the authorization filters.\",\"termsOfService\":\"http:\/\/swagger.io\/terms\/\",\"contact\":{\"email\":\"apiteam@swagger.io\"},\"license\":{\"name\":\"Apache 2.0\",\"url\":\"http:\/\/www.apache.org\/licenses\/LICENSE-2.0.html\"},\"version\":\"1.0.0\"},\"externalDocs\":{\"description\":\"Find out more about Swagger\",\"url\":\"http:\/\/swagger.io\"},\"servers\":[{\"url\":\"https:\/\/petstore.swagger.io\/v2\"},{\"url\":\"http:\/\/petstore.swagger.io\/v2\"}],\"tags\":[{\"name\":\"pet\",\"description\":\"Everything about your Pets\",\"externalDocs\":{\"description\":\"Find out more\",\"url\":\"http:\/\/swagger.io\"}},{\"name\":\"store\",\"description\":\"Access to Petstore orders\
@juaoose
juaoose / Dockerfile
Created January 25, 2022 21:59
devcontainer config for flutter development, based on https://gitlab.com/IvanTurgenev/flutter_vscode_remote
#-------------------------------------------------------------------------------------------------------------
# Flutter Dev Container - Lucas Hilleshein dos Santos.
# Licensed under the MIT License.
# See https://github.com/lucashilles/flutter-dev-container/blob/master/LICENSE for license information.
#-------------------------------------------------------------------------------------------------------------
FROM ubuntu:focal
#Locale
ENV LANG C.UTF-8
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juaoose
juaoose / b.geojson
Last active January 18, 2022 03:00
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juaoose
juaoose / index.html
Created September 2, 2021 00:51
Adding RealtimeIRL as a StreamElements overlay: Add a custom widget and add these to the widget in the html and js sections.
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="anonymous" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin="anonymous"></script>
</head>
<!DOCTYPE html>
<html>
<head>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script>
<script src="https://unpkg.com/@mapbox/mapbox-sdk/umd/mapbox-sdk.min.js"></script>
<script src="https://unpkg.com/@rtirl/api@latest/lib/index.min.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css"
rel="stylesheet"
/>
created() {
window.addEventListener('message',(e) => {
if(e.data.eventName === 'UPDATE_STATE') {
console.log(e.data.params.duration)
}
});
}