Skip to content

Instantly share code, notes, and snippets.

@stuartabrown
stuartabrown / chatgpt_anki_3
Created September 18, 2023 13:38
chat_gpt_anki_3
‎‎​
@stuartabrown
stuartabrown / chat_gpt_anki_2
Last active September 18, 2023 15:59
chat_gpt_anki_2
https://thevitalcurriculum.notion.site/AI-Master-Guides-ca4db7147f3e43f5a92bb297142280f8 - Cloze deletion flashcards Template (without notes section):
Review Text: "
4.1.1 Cell structure
4.1.1.1 Eukaryotes and prokaryotes
Content Key opportunities for
skills development
Plant and animal cells (eukaryotic cells) have a cell membrane,
cytoplasm and genetic material enclosed in a nucleus.
Bacterial cells (prokaryotic cells) are much smaller in comparison.
@stuartabrown
stuartabrown / chatgpt_science_anki
Last active September 18, 2023 13:36
ChatGPT Science Anki Prompt
https://thevitalcurriculum.notion.site/AI-Master-Guides-ca4db7147f3e43f5a92bb297142280f8 - two chat method
Chat instance #1
Task:
- Transform this dense source text into clear, concise bullet points that will be used to create educational flashcards later. Pay particular attention to the key facts and important details in the text. Focus on imaging features of diseases, unique imaging findings, and methods of differentiating similar disease entities. Exclude historical and technical information. This information is trivial and doesn’t contribute to the purpose of the educational materials, which is to help the user become a competent radiologist and diagnostician.
- Each bullet point must be able to stand alone. Include the subject of the bulleted statement somewhere in the text.
- Place all the bullet points in a plain text code block.
Source Text: " "
function onOpen() {
/****
* Start of multi-level dropdowns
****/
var ws = "";
var wsOptions = "";
var options = "";
// script variables
function setVars() {
var ws = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(mainWsName);
exports = async function(payload) {
const axios = require("axios");
const throttledQueue = require('throttled-queue');
var throttle = throttledQueue(5, 1000, true);
// const Bottleneck = require("bottleneck");
// const limiter = new Bottleneck({
// maxConcurrent: 1,
// minTime: 333
// });
// const mongodb = "foo";
@stuartabrown
stuartabrown / parseXML.py
Created February 9, 2019 10:31
yr.no xml parse
import datetime
import untangle
data = untangle.parse('https://www.yr.no/place/Australia/Northern_Territory/Katherine/forecast.xml')
today = datetime.datetime.today()
tomorrow = datetime.date.today() + datetime.timedelta(days=1)
tomorrowTemps = []
print ("today is " + today.strftime('%Y-%m-%d'))
print ("tomorrow is " + tomorrow.strftime('%Y-%m-%d'))
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/php:7.1-browsers