Skip to content

Instantly share code, notes, and snippets.

View leandroz's full-sized avatar

Leandro Zubrezki leandroz

View GitHub Profile
@devinschumacher
devinschumacher / how-to-loom.md
Last active December 1, 2025 13:04
How To Download Loom Videos For Free! 🚀 DL Without Subscription | ~10 Examples (.mp4, HLS, .m3u8)

How to Download Loom Videos: A Complete Step-by-Step Guide (With Real Examples & Command Cheatsheet)

Loom is a great tool for recording and sharing videos, but the platform has restrictions when it comes to downloading — especially if you’re not on a paid plan anymore.

You might have dozens or even hundreds of old recordings and realize you don’t have a way to save them locally (i did)

That’s frustrating, but it’s fixable. In this article, I’ll walk you through the exact process of detecting, inspecting, and downloading Loom videos using yt-dlp.

We’ll cover several different real-world scenarios you’ll encounter — from normal share links, to embeds, to videos with separate audio and video streams.

@tanaikech
tanaikech / submit.md
Last active April 15, 2025 01:46
Guide to Function Calling with Gemini and Google Apps Script

Guide to Function Calling with Gemini and Google Apps Script

Abstract

Powerful AI tool Gemini's API release (Vertex AI & Google AI Studio) opens doors for diverse applications. Its recent upgrade to version 1.5 boosts capabilities. This report demonstrates using simple Google Apps Script function calls to leverage Gemini's power for both data retrieval and content generation.

Introduction

The recent release of the LLM model Gemini as an API on Vertex AI and Google AI Studio unlocks a world of possibilities. Ref Excitingly, Gemini 1.5 was just announced, further expanding its capabilities. Ref I believe Gemini significantly expands the potential in various situations and paves the way for diverse applications. Notably, the Gemini API can retrieve new data and generate content through function calls. In this report, I introduce the basic flow of function

import { Machine, assign } from 'xstate';
import firebase from './firebase';
const chart = {
id: 'auth',
context: {
auth: null,
error: null,
loggedoutTime: null
},

Angular Universal setup for firebase hosting

1) Install firebase-tools globally

npm i -g firebase-tools

2) Install @angular/platform-server

@paulirish
paulirish / what-forces-layout.md
Last active December 8, 2025 09:19
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent

Google Apps Script Gmail Utilities

##sendAndLabel(recipient, subject, body, options, label)##

An alternative to GmailApp.sendEmail(), which applies a label to the message thread in the sender's account.

Sends an email message with optional arguments. The email can contain plain text or an HTML body. The size of the email