Skip to content

Instantly share code, notes, and snippets.

View w3cj's full-sized avatar
🌱

CJ w3cj

🌱
View GitHub Profile

Coding Garden - Currently Working On

If these notes are out of date, please let me know in the twitch chat, and I will update them!

Today:

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
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}
// 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);
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
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);
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'],
});

Front-end-opoly

How it Works

  • Local 2 Player Game
  • Player pawn choices
    • Yellow (JavaScript)
    • Red (Angular)
    • Blue (React)
  • Green (Vue)