- Best close encounter with a celebrity?
- Do you consider cereal a soup?
This file contains 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
{ | |
"messages": [ | |
{ | |
"content": "You are an advanced, reliable, candid AI system that takes user search queries, converts them into questions, and answers them, using specific facts and details sourced from webpages to prove your answer. You admit when you're unsure or don't know, and you never make a statement without providing a fact or instance to back it up. You answer questions directly and clearly, then provide more detail later. You follow the JSON schema exactly.", | |
"role": "system" | |
}, | |
{ | |
"content": "# CONTEXT\nCurrent date: #{DATE_TIME}.\n\nHere are result from a web search for '#{QUERY}':\nBEGIN WEB PAGE #{HOST_1} #{MARKDOWN_1}END WEB PAGE\nBEGIN WEB PAGE #{HOST_2} #{MARKDOWN_2}END WEB PAGE\nBEGIN WEB PAGE #{HOST_3} #{MARKDOWN_3}END WEB PAGE\nBEGIN WEB PAGE #{HOST_4} #{MARKDOWN_4}END WEB PAGE\nBEGIN WEB PAGE #{HOST_5} #{MARKDOWN_5}END WEB PAGE\nBEGIN WEB PAGE #{HOST_6} #{MARKDOWN_6}END WEB PAGE", | |
"role": "system" | |
}, |
This file contains 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 bash | |
# For all local git branches in the current directory, check if they have a merged PR. If so, offer to delete the branch and the remote. If not, print the PR number and URL. | |
# Usage: git-delete-merged-branches | |
# Requires: git, gh, jq | |
set -e | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
# Get all local branches | |
branches=$(git branch --format='%(refname:short)') | |
# Loop through each branch |
This file contains 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
I went on a first date with this guy; I didn’t know what to say to him? | |
What is the first song that comes to mind when I say the word “party”? | |
Can birds get allergies? | |
Why did my gf who said she loved me cheat on me rite in fornt of me and not care? | |
How long does it take to get THC out of your system if you only smoke on the weekends? | |
My girlfriend threw my dog off my balcony when I broke up with her Im not sure what to do? | |
Can toenails be swallowed? | |
Is it okay to bring jelly beans on a plane? | |
is masturbation create problem? | |
I’m in LOVE with Krista from Fern Gully. Are there any websites devoted to her? |
This file contains 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
let output = ''; | |
for (const el of wishList.querySelectorAll('[id^="itemName"]')) { | |
const itemName = el.innerText; | |
let amazonLink = el.getAttribute('href'); | |
if (amazonLink) { amazonLink = ` (🔗 https://amazon.com${amazonLink})`; } | |
if (!amazonLink) { amazonLink = ''; } | |
output = output + `- ${itemName}${amazonLink}\n`; | |
const comment = el.closest('.a-column').nextSibling.querySelector('[id^="itemComment"]'); | |
if (comment && comment.innerText.trim() !== "") { | |
output = output + ` 💬 ${comment.innerText}\n`; |
Given a Parent
class with value
property, Child
can inherit and overload the property while accessing Parent
property getter and setter.
Although we could just reimplement the Child.value
property logic completely without using Parent.value
whatsover, this would violate the DRY principle and, more important, it wouldn't allow for proper multiple inheritance (as show in the example property_inheritance.py
bellow).
Two options:
Child
redefinesvalue
property completely, both getter and setter.
- 424, “That family always had Gushers, and I made them mine because of my actions,”
- 418, “Gotta get a vasectomy,”
- 401, sex on the ISS
- 395, “So sweet, so crisp, so bitter, so many.”
- 392, “That’s another hour of Monster Hunter I can play before my body has to go to sleep,” “Let’s put the tiger on the table and yell at it,”
- 390, Justin kicks a bag at Taekwondo 50 times and then throws up
- 380, "Jesus please us," "That's a wild way of doing that," "We're getting British up in here!," “Got a penis that can cum and everything,”
- 379, crossing guard, “it is pretty ‘punk rock’,” crane lifts up a car into the sky
- 378, someone’s brother rips out the pockets of their jeans while they’re talking to them,
This file contains 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
# synchronous api | |
# response = sg.client.mail.send.post(request_body=data) | |
# except urllib.error.HTTPError as exc: | |
# async implementation | |
api_endpoint = 'https://api.sendgrid.com/v3/mail/send' | |
headers = {'Authorization': f'Bearer {sendgrid_api_key}', | |
'Content-Type': 'application/json'} |
This file contains 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
""" | |
MIT License | |
Copyright (c) 2017 Michał Bultrowicz | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
NewerOlder