Skip to content

Instantly share code, notes, and snippets.

View Samsonroyal's full-sized avatar
🌐
Global citizen

Were Samson Bruno Samsonroyal

🌐
Global citizen
View GitHub Profile
@Samsonroyal
Samsonroyal / DOM3D.js
Created March 27, 2024 15:17 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@Samsonroyal
Samsonroyal / Retell python walkthrough.md
Created February 24, 2024 17:57
Walkthrough to use retell in Python backend

To implement the Python backend demo provided, follow these steps:

  1. Clone the Repository: Start by cloning the repository to your local machine. You can do this by running the following command in your terminal:
git clone https://github.com/user/repo.git

Replace user/repo with the actual repository URL.

  1. Install Dependencies: Navigate to the cloned repository directory and install the required Python packages using pip:
@Samsonroyal
Samsonroyal / Monorepo.md
Last active January 21, 2024 10:55
How to create a React And Flutter Mono Repo:
# Setting Up a Monorepo with React and Flutter on GitHub

**1. Create the Monorepo Repository:**

1. Go to [https://github.com/new](https://github.com/new).
2. Provide a repository name (e.g., "my-monorepo").
3. Choose "Public" or "Private" visibility.
4. Click "Create repository".
@Samsonroyal
Samsonroyal / Broom.js
Last active November 8, 2023 19:13
Create a Simple JavaScript Data Sorter
const fs = require('fs');
const mammoth = require('mammoth');
// Read the .docx file
fs.readFile('data.docx', (err, data) => {
if (err) {
console.error(err);
return;
}