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
unit OpenAI; | |
interface | |
uses | |
System.SysUtils, | |
System.Classes, | |
System.Generics.Collections, | |
System.Net.HttpClient, | |
System.Net.HttpClientComponent, |
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 random | |
import numpy as np | |
# define color palette that is used by the semantic segmentation models | |
seg_palette = np.asarray([ | |
[0, 0, 0], | |
[120, 120, 120], | |
[180, 120, 120], | |
[6, 230, 230], |
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
#!/usr/bin/env python | |
import os | |
import random | |
import uuid | |
import subprocess | |
from typing import List, Optional | |
from tqdm import tqdm | |
import re | |
import time |
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 | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
from huggingface_hub import hf_hub_url | |
import requests | |
import threading | |
from threading import Lock | |
from IPython.display import display, clear_output | |
# Initialize shared variable and lock | |
downloaded_bytes = 0 |
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
(The Days unfold on a silent chart) | |
(The Money fuels a rebellious heart) | |
(The Band anticipates its part) | |
(The Week circles like a work of art) | |
Days is silence | |
Money is a roaring flame | |
Band is a blank canvas | |
Week is a cycle of seven |
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
// Object.prototype YMMV | |
const ColorOperation = { | |
XOR: 'XOR', | |
DIFF: 'DIFF', | |
ADD: 'ADD', | |
SUB: 'SUB', | |
MAX: 'MAX', | |
AVG: 'AVG' | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>BioTarot Reading</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #b8a8c2; |
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
Python | |
def safety_guidelines(): | |
""" | |
Ensures that the response is safe, ethical, and appropriate. | |
Returns: | |
A boolean value indicating whether the response is safe. | |
""" |
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
#Question: Write a simple feature-complete snake game written in python using pygame. | |
#""" | |
# 1. Overview and imports | |
# Import pygame for the game | |
import pygame | |
pygame.init() |
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
#in my case on windows I had to | |
New-Item -ItemType SymbolicLink -Path "C:\Python311\bin" -Target "C:\Python311" | |
#as admin | |
#I also did not have f2py.exe in my python so I kinda welded it in from a similar one... | |
#by just dumping the copies in scripts and praying. | |
#also needed to | |
Get-ChildItem -Path 'C:\Python311' -Directory | Where-Object { $_.Name -ne 'bin' } | Get-ChildItem -Recurse | Where-Object { $_.PSIsContainer -or $_.Extension -eq '.exe' } | ForEach-Object { icacls $_.FullName /grant "YourUserNameHere:(OI)(CI)F" } |