Skip to content

Instantly share code, notes, and snippets.

View jryebread's full-sized avatar

James jryebread

  • San Jose, California
View GitHub Profile
public static boolean isPalindrome(String str) {
Pattern pattern = Pattern.compile("\\([a-z]\\)\\([a-z]\\)[a-z]\\2\\1");
Matcher matcher = pattern.matcher(str);
if(matcher.find())
return true;
return false;
}
using UnityEngine;
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
//using HUX.Interaction;
//using HUX.Receivers;
using UnityEngine.UI;
import os
os.environ['PYTHONASYNCIODEBUG'] = '1'
import asyncio
import logging
import cv2
import base64
import cv2
import numpy as np
import numpy as np
import scipy
@jryebread
jryebread / robertsonsTest
Created October 13, 2019 03:08
robertsonsTest
// CSE140L Fall 2018 Lab 1
module robertsonstest;
// stimuli to device inputs
logic clk;
logic reset;
logic signed[7:0] multiplier; // incoming factors
logic signed[7:0] multiplicand;
logic signed[15:0] i;
import pickle
from dotenv import load_dotenv
import os
from langchain.chains.qa_with_sources import load_qa_with_sources_chain
load_dotenv()
import streamlit as st
import PyPDF2
import requests
from youtube_comment_downloader import *
PROMPT_CLAUDE = "you are a writer at a product review blog. You are tasked with generating an article (WRITTEN IN VALID MARKDOWN FORMAT WITH QUOTES FROM THE ACTUAL COMMENTERS IN CASES WHERE YOU THINK APPROPRIATE) that encapsulates the essence of the topic discussed in the provided comments under a post, along with incorporating the sentiments and opinions expressed in the comments section. The article should begin with an introduction that provides a concise overview of the video topic, followed by a detailed analysis of the key points discussed therein. Ensure that the article reflects a balanced representation of the various perspectives expressed in the comments, highlighting both positive and negative sentiments where applicable. Additionally, the article should delve into any recurring themes or noteworthy insights conveyed by the commenters. Please maintain a coherent narrative throughout the article and aim for a length that sufficiently covers t
``` return (
<AbsoluteFill>
<AbsoluteFill>
<OffthreadVideo pauseWhenBuffering={true} src={src} />
</AbsoluteFill>
{/* Render Broll Videos */}
{groupedBroll.map((brollGroup: any, index: number) => {
if (!brollGroup.broll) return null;
# DeepSeek API credentials
# Get your API key from: https://platform.deepseek.com
DEEPSEEK_API_KEY=
# Apify API token
# Get your token from: https://console.apify.com/account/integrations
APIFY_API_TOKEN=
# OpenAI API key
# Get your key from: https://platform.openai.com/api-keys