Skip to content

Instantly share code, notes, and snippets.

View roerohan's full-sized avatar

Rohan Mukherjee roerohan

View GitHub Profile
import React, { useEffect, useRef, useState } from 'react';
import {
provideDyteDesignSystem,
DyteCameraToggle,
DyteChatToggle,
DyteClock,
DyteControlbar,
DyteDialogManager,
DyteGrid,
DyteGridPagination,
@roerohan
roerohan / DyteMap.ts
Created June 9, 2022 10:48
A map that re-emits every event emitted by an object in the map.
export default class DyteMap<T extends { id: string } & DyteEventEmitter> extends Map<string, T> {
readonly #eventEmitter: DyteEventEmitter;
#listeners: Map<string, (event: keyof typeof DyteEvents, ...args: any[]) => void>;
readonly onAddEvent: keyof typeof DyteEvents;
readonly onDeleteEvent: keyof typeof DyteEvents;
constructor(options?:

An ideal application will contain 3 things:

  1. Information about you, including contact information, GitHub profile, etc.
  2. Information about your selected project (or proposed project). This should be fairly detailed and include a timeline.
  3. Information about other commitments that might affect your ability to work during the externship period. (exams, classes, holidays, other jobs, weddings, etc.) We can work around a lot of things, but it helps to know in advance.

Sample Application Template:

Dyte: <Selected Project Name>

About me

  1. Name (along with your GitHub username, feel free to add your Discord handle)
@roerohan
roerohan / dyte-remote-browser.md
Last active January 6, 2023 06:27
Remote browser public README

Logo

Remote Browser Plugin by Dyte

Browse the web together using a remote chrome browser.

@roerohan
roerohan / release.yml
Created October 7, 2021 15:38
GitHub action to run semantic-release
name: Release to NPM Registry
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
@roerohan
roerohan / setup-release.sh
Last active February 17, 2023 07:56
A script that sets up a proper release process for Javascript/Typescript projects, with `semantic-release`, `commitizen`, `commitlint`, `husky`, etc.
#!/bin/bash
RELEASE_RC_FILE=".releaserc.json"
GITHUB_WORKFLOWS_DIR=".github/workflows"
NPM_RELEASE_ACTION_FILE="$GITHUB_WORKFLOWS_DIR/release.yml"
LINT_BUILD_ACTION_FILE="$GITHUB_WORKFLOWS_DIR/lint.yml"
TEST_ACTION_FILE="$GITHUB_WORKFLOWS_DIR/test.yml"
if ! command -v npm &> /dev/null
then
@roerohan
roerohan / dyte_webhook_docs.md
Last active February 10, 2021 10:34
Documentation for webhooks by dyte.

Webhooks by dyte

API

The API specification for webhooks is given as follows:

Note: All requests require a valid Authorization header to work as intended. All requests and responses are in JSON format.

POST /v1/organizations/{organizationId}/webhook

@roerohan
roerohan / gitautotag.sh
Last active February 19, 2022 20:35
Automatically add a git tag by adding adding flags like --minor, --major, --bug. Modification of https://gist.github.com/dtiemann83/cfa16ade69a3ea451ad760d4118a9351.
#!/bin/bash
CURTAG=`git describe --tags --abbrev=0`;
CURTAG="${CURTAG/v/}"
IFS='.' read -a vers <<< "$CURTAG"
MAJ=${vers[0]}
MIN=${vers[1]}
BUG=${vers[2]}
@roerohan
roerohan / log-me-in.md
Created August 31, 2020 20:23
Google CTF: log me in writeup

Log Me In

Author: roerohan

Requirements

  • Express.js
  • Body Parser