Skip to content

Instantly share code, notes, and snippets.

View jryebread's full-sized avatar

James jryebread

  • San Jose, California
View GitHub Profile
``` return (
<AbsoluteFill>
<AbsoluteFill>
<OffthreadVideo pauseWhenBuffering={true} src={src} />
</AbsoluteFill>
{/* Render Broll Videos */}
{groupedBroll.map((brollGroup: any, index: number) => {
if (!brollGroup.broll) return null;
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
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
@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 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
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;
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;
}
// Recursion - James Riback
package recursionones;
public class RecursionOnes {
static int getOnes(int num, int count) // number of times the value 1 appears in a number converted to binary
{
if(num >0)
{
count = num % 2 == 1 ? count + 1 : count; // if the remainder is equal to 1, we count it
#include "PalCheck.h"
#include "Queue.h"
#include <string>
bool PalCheck::isPalindrome(Queue<char> pq)
{
std::string nline = "";
std::string rline = "";
int n = pq.ifront();
int r = pq.iback();
template<class T>
void LinkedList<T>::deleteElement(T currVal)
{
Node<T> *p = Head;
//Stop at the node before the one you want to delete
while (p->next->data != currVal)
{
p = p->next;
}
//set up the next node for deletion