Skip to content

Instantly share code, notes, and snippets.

View leestott's full-sized avatar

Lee Stott leestott

View GitHub Profile
@jflam
jflam / app.py
Created January 16, 2023 02:55
Citations needed
# To run you'll need some secrets:
# 1. SERPAPI_API_KEY secret in env var - get from https://serpapi.com/
# 2. OPENAI_API_KEY secret in env var - get from https://openai.com
import streamlit as st
import json, os
from langchain.prompts import PromptTemplate
from langchain.llms import OpenAI
from serpapi import GoogleSearch

Type Selector

Select elements by their type. Selects all elements of type A. Type refers to the type of tag, so div, p and ul are all different element types.

Examples

  • div selects all div elements.
  • p selects all p elements.
@leestott
leestott / index.html
Last active May 21, 2020 10:46 — forked from lostintangent/index.html
Rock paper scissors
<span id="pc" class="hidden">✊</span>
<div id="player">
<span id="rock">✊</span>
<span id="paper">🤚</span>
<span id="scissor">✌️</span>
</div>
<p class="hidden">You Win</p>