Objective: Get familiar with Ruby basics
- July 20: Introduction to Ruby, Installation, and Setup
- July 22: Basics: Variables, Data Types
- July 24: Control Flow: Conditionals
import os | |
from google import genai | |
from google.genai import types | |
client = genai.Client(api_key=os.getenv("GEMINI_API_KEY","xxx")) | |
# Repalce with the youtube url you want to analyze | |
youtube_url = "https://www.youtube.com/watch?v=RDOMKIw1aF4" | |
# Prompt to analyze and summarize the Youtube Video |
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
import csv | |
with open('ruby-study-guide.tsv', 'r') as tsvfile: | |
reader = csv.reader(tsvfile, delimiter='\t') | |
with open('ruby-study-guide.csv', 'w') as csvfile: | |
writer = csv.writer(csvfile) | |
for row in reader: | |
writer.writerow(row) |
Thanks for saying you like my camera set up! As you asked, here are the deets. There are cheaper ways to achieve some of the same results and possibly better ways to - however this is what I ended up with.
String.prototype.getInitials = function(glue){ | |
if (typeof glue == "undefined") { | |
var glue = true; | |
} | |
var initials = this.replace(/[^a-zA-Z- ]/g, "").match(/\b\w/g); | |
if (glue) { | |
return initials.join(''); | |
} |
It all begins with Homebrew. This setup uses Homebrew for almost everything, including things your Mac ships with, like Python.
Managing everything in Homebrew lets us use the most up-to-date packages available, and means we are not subject to any customizations, however small, Apple makes to their packaged software.