Forked from JayFoxRox gist
https://gist.github.com/JayFoxRox/cf960bcf74c7f3cf8c7181354072b25d
So I need to find out how many days there are between February 19, 2020, and February 28, 2025. Hmm, that seems straightforward, but I should be careful with the leap years since they affect the number of days in February. | |
First, I need to figure out how many years are between 2020 and 2025. That would be 2021, 2022, 2023, and 2024. Wait, actually, from 2020 to 2025 is 5 years, but since we're starting in February and ending in February, I need to see if we include the leap years properly. | |
Let me recall that a leap year is every 4 years, and 2020 was a leap year because it's divisible by 4. So, 2024 would also be a leap year, right? Yes, because 2024 divided by 4 is 606, with no remainder. | |
So, between 2020 and 2025, the leap years are 2020 and 2024. But wait, 2020 is included, and 2024 is before 2025, so yes, both are within the range. | |
Now, since we're starting on February 19, 2020, and 2020 is a leap year, that means February 2020 has 29 days. So, from February 19 to February 29, 2020, that's 10 days, I |
Make a bpy blender python script that will draw : | |
maxima | |
* a human that is inside a house | |
* the house is inscribed in a sphere | |
* the sphere is inscribed in a cube | |
* the cube is inscribed in a cylinder | |
* the cylinder is inscribed in a pyramid | |
Before starting, think deeply about how you could draw those different elements using primitive shapes and how to follow each instruction to be truth. |
import os | |
import subprocess | |
import json | |
import multiprocessing | |
from tqdm import tqdm | |
import time | |
import tempfile | |
import shutil | |
import logging | |
import glob |
import requests | |
from youtube_transcript_api import YouTubeTranscriptApi | |
from youtube_transcript_api.formatters import SRTFormatter | |
import json | |
from datetime import timedelta | |
def download_channel_videos(api_key, channel_id): | |
base_url = "https://www.googleapis.com/youtube/v3" | |
videos_url = f"{base_url}/search?key={api_key}&channelId={channel_id}&part=snippet,id&order=date&maxResults=50" | |
video_details_list = [] |
[ | |
{ | |
"video_id": "w5V9a_xTqcI", | |
"video_full_url": "https://www.youtube.com/watch?v=w5V9a_xTqcI", | |
"video_title": "🗣️ Pourquoi avez-vous un mauvais accent ? (Mini Pourquoi)", | |
"video_description": "On ne va pas se mentir, l'accent frenchie en anglais, c'est pas ce dont on est le plus fier. Et même si certains anglophones trouvent ça \"cute\", on aimerait bien se débrouiller un peu mieux. Mais d'où vient donc le fait qu'il soit si difficile d'imiter un accent ?\n\nN’oubliez pas que vos partages et la visibilité qui vient avec sont la plus grande force que vous pouvez apporter à ce projet pour le moment. À votre bon cœur ! \n\n N’hésitez pas non plus à vous abonner à cette chaîne et à suivre le Muséum des ‽ourquois sur les réseaux sociaux.\n\n💡Facebook : https://www.facebook.com/MuseumDesPourquois\n💡Instagram : https://www.instagram.com/museumpourquois\n💡Twitter : https://www.twitter.com/MuseumPourquois\n\nEnfin, si vous voulez soutenir financièrement ce contenu gratuit, vous pou |
from PyPDF2 import PdfReader, PdfWriter | |
# Path to the password-protected PDF file | |
input_pdf_path = 'path/to/protected/file.pdf' | |
# Password for the PDF file | |
password = 'yourPassword' | |
# Path for the new PDF file without a password | |
output_pdf_path = 'path/to/new/file.pdf' | |
reader = PdfReader(input_pdf_path) |
Forked from JayFoxRox gist
https://gist.github.com/JayFoxRox/cf960bcf74c7f3cf8c7181354072b25d
import bpy | |
bpy.ops.mesh.primitive_monkey_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1)) | |
bpy.ops.object.modifier_add(type='SUBSURF') | |
bpy.context.object.modifiers["Subdivision"].levels = 3 | |
bpy.ops.object.modifier_apply(modifier="Subdivision") | |
bpy.ops.object.modifier_add(type='ARRAY') | |
bpy.context.object.modifiers["Array"].count = 50 | |
bpy.ops.object.modifier_apply(modifier="Array") |
// ==UserScript== | |
// @name placestart | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description credit to oralekin | |
// @author oralekin | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name placestart | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description credit to oralekin | |
// @author oralekin | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |