Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -Filter "*.zip" | ForEach-Object { $folder = $_.BaseName; New-Item -ItemType Directory -Path $folder -Force | Out-Null; Expand-Archive -Path $_.FullName -DestinationPath $folder -Force; Write-Host "Extracted: $($_.Name) -> $folder\" -ForegroundColor Green } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @fileoverview Google Apps Script for inserting random emojis into a Google Doc. | |
| * This script creates a custom menu on document load and inserts five random emojis | |
| * with a large font size when the menu item is clicked. | |
| */ | |
| // A list of diverse and common emojis to choose from. | |
| const EMOJIS = [ | |
| '😀', '🤩', '🥳', '😎', '🤯', '😜', '😍', '😭', '🤯', | |
| '🐶', '🐱', '🐭', '🐹', '🐰', '🐼', '🦊', '🐻', '🐨', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Creates a custom menu in the Google Doc interface when the document is opened. | |
| */ | |
| function onOpen() { | |
| DocumentApp.getUi() | |
| .createMenu('Random Image') | |
| .addItem('Insert New Image', 'insertRandomPictureInDoc') | |
| .addToUi(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import sys | |
| def rename_items(directory, perform_rename=False): | |
| """ | |
| Scans the specified directory and replaces whitespace in item names with dashes. | |
| :param directory: The directory path to scan. | |
| :param perform_rename: If True, actually renames the files/folders. If False (preview mode), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image, ImageDraw, ImageFont | |
| import os | |
| import random | |
| import argparse | |
| import sys | |
| from datetime import datetime | |
| def get_system_fonts(): | |
| """Finds all usable TrueType font paths on the system.""" | |
| font_paths = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LLM Travel Assistant Instructions | |
| Objective | |
| The LLM should provide personalized travel assistance, including itinerary creation, map guidance, and budget planning, tailored to the user's preferences and constraints. | |
| Core Functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check if FFmpeg is installed | |
| $ffmpegInstalled = Get-Command ffmpeg -ErrorAction SilentlyContinue | |
| if (-not $ffmpegInstalled) { | |
| Write-Host "FFmpeg is not installed or not found in PATH. Please install it before running this script." | |
| exit | |
| } | |
| # Get all video files in the current directory | |
| $videoFiles = Get-ChildItem -Filter *.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prompt user for the prompt to Llama3.2 | |
| $llamaPrompt = Read-Host "Enter your prompt for Llama3.2" | |
| # Take the first 10 characters of the prompt and remove all spaces | |
| $filename = ($llamaPrompt.Substring(0, [Math]::Min(10, $llamaPrompt.Length))).Replace(" ", "") | |
| # Set the desktop path | |
| $desktopPath = [System.IO.Path]::Combine($env:USERPROFILE, "Desktop") | |
| $filePath = "$desktopPath\$filename.txt" |
NewerOlder