If these notes are out of date, please let me know in the twitch chat, and I will update them!
Working on lots of random channel related things today:
- Calendar
- View the schedule on twitch: cdg.sh/schedule | View the calendar on google: cdg.sh/calendar | Download the calendar ics: cdg.sh/ics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
db: | |
image: mongo:4 | |
restart: always | |
volumes: | |
- ./docker-data/db:/data/db | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER} | |
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD} |
- https://github.com/CodingGarden/twitch-team-shoutout-bot/
- TBD - link to samwisegardener bot code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources: https://del.dog/v/edypeginge.js | |
// https://www.hackerfactor.com/blog/?/archives/432-Looks-Like-It.html | |
// https://sharp.pixelplumbing.com/api-output#raw | |
// https://github.com/AndrewLaneX/photohash/blob/master/photohash/photohash.py#L22-L32 | |
const fs = require('fs'); | |
const sharp = require('sharp'); | |
async function averageHash(filePath, hashSize = 8) { | |
const buffer = await fs.promises.readFile(filePath); |
- The example URLs here use the Coding Trains channel ID: UCvjgXvBlbQiydffZU7m1_aw (replace this with your channel id)
- All of the API requests require a YouTube Data API key (no oauth required, just an API key)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alexcvzz.vscode-sqlite | |
andys8.jest-snippets | |
apollographql.vscode-apollo | |
austincummings.razor-plus | |
bobsparadox.seti-black | |
BriteSnow.vscode-toggle-quotes | |
christian-kohler.npm-intellisense | |
christian-kohler.path-intellisense | |
CoenraadS.bracket-pair-colorizer | |
dbaeumer.vscode-eslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tmi = require('tmi.js'); | |
module.exports = async function (context, myTimer) { | |
var timeStamp = new Date().toISOString(); | |
if (myTimer.IsPastDue) | |
{ | |
context.log('Timer running late...'); | |
} | |
context.log('Timer triggered:', timeStamp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const client = new tmi.Client({ | |
options: { | |
debug: true, // verbose message logging -> will show when connected, all messages, errors, etc. | |
}, | |
connection: { | |
reconnect: true, | |
secure: true, | |
}, | |
channels: ['funfunfunction'], | |
}); |
- Coding Train -> https://www.youtube.com/user/shiffman
- FunFunFunction -> https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q
- DevTips -> https://www.youtube.com/user/DevTipsForDesigners
- BrooksBuilds -> https://www.youtube.com/channel/UCT1-XRVnJA-wws2bfbLbFcQ
- LevelUpTuts -> https://www.youtube.com/user/LevelUpTuts
NewerOlder