*INSANE* 4 Wild Coding Examples! (using ChatGPT o1)

Описание к видео *INSANE* 4 Wild Coding Examples! (using ChatGPT o1)

🔥 Join Ai Foundations:
https://swiy.co/aif-1

In today's video we begin our journey of coding with ChatGPT o1-preview. Their latest release. I showcase how to code games, how to code websites and so much more! This video serves as a showcase of all the new things you can build using o1 and o1-mini for coding. OpenAi has done it again. They've managed to blow EVERYONE away.

Enjoy this walkthrough and if you need more help coding with Ai I recommend checking out my other videos on coding with ai where I go more in depth on the specifics of running your programs, using VS Code and Cursor.

Background Generator: https://codepen.io/cartersurach/pen/W...

Python Code Line Numbering Tool:
'''
import tkinter as tk
from tkinter import scrolledtext

def add_line_numbers():
code = input_text.get("1.0", tk.END)
lines = code.rstrip().split('\n')
total_lines = len(lines)
line_number_width = len(str(total_lines))
numbered_lines = []
for idx, line in enumerate(lines, start=1):
line_number = str(idx).rjust(line_number_width)
numbered_line = f"{line_number} {line}"
numbered_lines.append(numbered_line)
output_code = '\n'.join(numbered_lines)
output_text.delete("1.0", tk.END)
output_text.insert(tk.END, output_code)

Create the main window
root = tk.Tk()
root.title("Code Line Numbering App")

Create the input Text widget
input_label = tk.Label(root, text="Input Code:")
input_label.pack()

input_text = scrolledtext.ScrolledText(root, height=15, width=80)
input_text.pack()

Create the button to add line numbers
button = tk.Button(root, text="Add Line Numbers", command=add_line_numbers)
button.pack(pady=10)

Create the output Text widget
output_label = tk.Label(root, text="Output Code with Line Numbers:")
output_label.pack()

output_text = scrolledtext.ScrolledText(root, height=15, width=80)
output_text.pack()

Run the main loop
root.mainloop()

''''

Chapters

Intro - 0:00 - 0:22
Games - 0:23 - 1:22
Dot Grid Generation - 1:23 - 4:23
Promo Ai Foundations - 4:24 - 5:19
Simulations - 5:20 - 7:06
Python Tools - 7:07 - 9:20
Outro - 7:21 - 9:48

#chatgpt #openai #o1

Комментарии

Информация по комментариям в разработке