Skip to content

Instantly share code, notes, and snippets.

View luighifeodrippe's full-sized avatar

luighifeodrippe

View GitHub Profile
@luighifeodrippe
luighifeodrippe / README.md
Created October 19, 2024 19:49 — forked from YoSoyPhil/README.md
Install Canon EOS Utility 2 full version

How to install Canon EOS Utility 2 full version

EOS Utility 2.14.20a full version install

Go to Canon and select your camera model under software downloads. At the time this guide was written, the link was https://www.canon-europe.com/support/consumer_products/software/eos-utility.html

Select your camera and download "EOS Utility 2.14.20a Updater for Windows" (yes, we will do full install with this file).

Before we can run the installer we need to add a key to our registry.

@luighifeodrippe
luighifeodrippe / index.html
Created July 17, 2024 18:32 — forked from k3ntar0/index.html
Claude 3.5 Sonnetで生成した物体検出アプリケーション
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Realtime Object Detection</title>
<style>
body { font-family: Arial, sans-serif; }
#canvas { border: 1px solid #000; }
table { border-collapse: collapse; margin-top: 20px; }
Me:
I am looking to build a simple GUI site that allows me to paste in some text, click "rewrite", and get rewritten, cleaned-up text back. This input text is ran through the Claude API to rewrite it. The GUI should be very simple. I just want a text box for input and a text box for output. I also two sliders on the side with labels on the ends:
Tone: casual on the left, formal on the right. The middle instructs the model to keep the tone/voice the same.
Length: shorter on the left, longer on the right.
Above these sliders, I want a model selector dropdown that let's me pick which Claude model to use. I also want a copy text button under the output textbox. The three Claude models are:
claude-3-opus-20240229. Display name "Claude 3 Opus".
claude-3-sonnet-20240229. Display name "Claude 3 Sonnet".
claude-3-haiku-20240307. Display name "Claude 3 Haiku".
@luighifeodrippe
luighifeodrippe / script.js
Last active November 12, 2024 14:20 — forked from gd3kr/script.js
Download a JSON List of twitter bookmarks
/* Enhancements to the Twitter Scraping Script:
This update to the script introduces a more robust mechanism for extracting detailed interaction data from tweets as they are scraped from Twitter. Previously, the script focused on collecting basic content such as the tweet's text. Now, it has been augmented to include a comprehensive extraction of interaction metrics, including replies, reposts, likes, bookmarks, and views, for each tweet.
Key Changes:
1. Improved Data Extraction:
- The script now searches through all elements within a tweet that have an `aria-label` attribute, filtering for labels that contain key interaction terms (replies, reposts, likes, bookmarks, views). This ensures that only relevant `aria-labels` are considered for data extraction.
2. Flexible Interaction Data Parsing:
import requests
from bs4 import BeautifulSoup
import os
import re
from telebot import TeleBot
from PIL import Image
from io import BytesIO
import datetime
from xmlrpc import client as xmlrpc_client
import unidecode