Skip to content

Instantly share code, notes, and snippets.

View R-ohit-B-isht's full-sized avatar
🔥
Grind

Rohit Bisht R-ohit-B-isht

🔥
Grind
View GitHub Profile

Exporting Figma Files to specified Format Playbook

This playbook outlines the steps taken to export design assets from a Figma file to specified format using the Figma API.

Prerequisites

  • Personal access token from Figma with the necessary scopes.
  • The Figma file URL or key.
  • curl and jq installed on the local machine.
  • A bash shell environment.

Playbook: Exporting Figma Files to Specified Format Playbook

Overview

This playbook outlines the steps taken to export design assets from a Figma file to a specified format using the Figma API.

Prerequisites

  • curl and jq installed on the local machine.
  • A bash shell environment.
@R-ohit-B-isht
R-ohit-B-isht / gist:83e68a5dd3cdf75aaefe63e586379d00
Last active April 21, 2024 17:39
Migrating_files_between_Notion_and_Google_Drive.playbook.md
# Playbook: Migrating Documents Between Notion and Google Drive
## Overview
This playbook outlines the steps to migrate documents between Notion and Google Drive via a browser. It includes authentication steps for both platforms.
## Prerequisites
- Google and Notion account credentials.

Playbook: Login to Google Drive and Notion

Prerequisites

  • Google and Notion account credentials.

Procedure

  1. Open a new browser window and navigate to the Google Drive login page.

Playbook: Migrating Documents Between Notion and Google Drive

Overview

This playbook outlines the steps to migrate documents between Notion and Google Drive via a browser. It includes authentication steps for both platforms.

Prerequisites

  • Google and Notion account credentials.

Playbook: Migrating a Project to Bun

Overview

This playbook provides guidance on migrating an existing project to the Bun JavaScript runtime and bundler. It covers assessing compatibility, configuring Bun, updating build scripts, and verifying functionality.

Prerequisites

Playbook: Visualizing the History of a Git Repository with Gource

Overview

This playbook provides guidance on using Gource to visualize the history of a Git repository. It covers installing Gource, generating visualizations, customizing visual output, and sharing the visualization.

Prerequisites

Playbook: Creating a 3D Physics Simulation with Three.js

Overview

This playbook outlines the steps to create a 3D website using Three.js, where a ball bounces on a square plane with real physics. Additionally, it covers the implementation of lighting effects, including making the ball shine and casting shadows on the plane.

Prerequisites

  • Node.js and npm installed on machine.
  • Installation of the Three.js library via npm.

Playbook: Dockerizing a Project with Best Practices

Overview

This playbook guides you through the process of dockerizing an existing project, ensuring compatibility, security, and efficiency.

Preconditions

  • Ensure Docker is installed on your machine.
  • Familiarize yourself with the project's structure and dependencies.
function convertDivToImage(divSelector) {
// Get the div element by CSS selector
let div = document.querySelectorAll(divSelector);
// Check if the div element exists
if (!div) {
div = document.getElementById(divSelector);
if (!div){
console.error(`No element found`);
return;