Skip to content

Instantly share code, notes, and snippets.

View woodman231's full-sized avatar

Sean Woodward woodman231

View GitHub Profile
@woodman231
woodman231 / index.ts
Created March 8, 2024 23:53
Different Ways for doing reusable logic for socket.io
import { Server, Socket } from "socket.io";
import { DefaultEventsMap, EventNames, EventParams, ReservedOrUserListener, ReservedOrUserEventNames, StrictEventEmitter } from "socket.io/dist/typed-events";
import { Server as HttpServer } from "http";
import { io } from "socket.io-client";
interface Identity {
id: string;
}
interface MyEntity extends Identity {
@woodman231
woodman231 / tailwind.config.js
Last active November 9, 2023 23:22
nx react app, include libraries in your tailwind config to make it compile tailwind classes for library projects
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
const { join } = require('path');
const mainProject = join(__dirname, '../../');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
join(
mainProject,
@woodman231
woodman231 / some_package_test.go
Created November 23, 2022 16:49
Basic GO Unit Test Testing Table
func Test_Some_Package_Tests(t *testing.T) {
tests := []struct {
name string
}{
{
name: "Test1",
},
}
for _, tt := range tests {
@woodman231
woodman231 / README.md
Last active November 27, 2021 05:44
A couple of good steps to do after creating an electron-forge app with the Webpack plugin

To start the project: npx create-electron-app my-new-app --template=webpack

Attached are files to help with configuration of a preload script and a visual studio code debug

@woodman231
woodman231 / index.js
Created May 2, 2019 00:20
node express github webhook listener boilerplate
const express = require('express');
const app = express();
const port = 3000;
app.use( express.json() );
app.get('/', (req, res) => {
res.send('Hello World!');
});
@woodman231
woodman231 / test1.md
Last active May 2, 2019 00:15
my first readme gist

Hello World

Hello!