Skip to content

Instantly share code, notes, and snippets.

View foeken's full-sized avatar

Andre Foeken foeken

  • Nedap
  • Groenlo, The Netherlands
View GitHub Profile
:has(span[data-tag="quote"]):not(.expandedNodeContent) > .listContentItem,
:has(span[data-tag="block-quote"]):not(.expandedNodeContent) > .listContentItem {
background-color: var(--colorReferenceMentionBackground);
border-left: 5px solid var(--colorUIStroke);
border-left-width: 3px;
border-radius: 3px;
padding: 8px 14px;
}
:has(span[data-tag="delegated"]):not(.expandedNodeContent) > span[data-role="editable"]:before {
// Name: OpenAI Replace
// Description: Replace text with Open AI's API
// Shortcut: command ctrl s
import "@johnlindquist/kit"
let { Configuration, OpenAIApi } = await npm("openai")
let configuration = new Configuration({
// Name: OpenAI Replace
// Description: Replace using Open AI's API
// Shortcut: cmd ctrl s
import "@johnlindquist/kit"
let { Configuration, OpenAIApi } = await npm("openai")
let configuration = new Configuration({
apiKey: await env("OPENAI_API_KEY"),
@foeken
foeken / openai-replace.js
Created November 28, 2022 15:24
ScriptKit OpenAI script for Tana
// Name: OpenAI Replace
// Description: Replace using Open AI's API
// Shortcut: cmd ctrl s
import "@johnlindquist/kit"
let { Configuration, OpenAIApi } = await npm("openai")
let configuration = new Configuration({
apiKey: await env("OPENAI_API_KEY"),
// Name: OpenAI Replace
// Description: Replace using Open AI's API
// Shortcut: cmd ctrl s
import "@johnlindquist/kit"
let { Configuration, OpenAIApi } = await npm("openai")
let configuration = new Configuration({
apiKey: await env("OPENAI_API_KEY"),
// Shortcut: command control a
// Name:
// Description: Enrich using Open AI's API
// Shortcut:
import "@johnlindquist/kit"
let { Configuration, OpenAIApi } = await npm("openai")
let configuration = new Configuration({
@foeken
foeken / tana.css
Created December 28, 2022 11:54
Tana + FontAwesome
/* ==UserStyle==
@name app.tana.inc - 10/21/2022, 9:02:58 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document domain("app.tana.inc") {
:root {
import Foundation
import EventKit
print("%%tana%%")
struct Event: Codable {
let title: String
let startDate: String
let endDate: String
let location: String?
let attendees: [Attendee]?
Convert the following text to a single English to-do list item that must be performed or return "STOP" if no actions are in the text.
INPUT:
Hello
OUTPUT:
STOP
INPUT:
Beste André,
@foeken
foeken / gist:2d405f35521f9445bc4e9cb52e77f7f4
Created October 22, 2023 08:56
EventLink + Service: Privacy Policy
**EventLink Privacy Policy**
**Last Updated:** October 22, 2023
Welcome to EventLink! We respect your privacy and are committed to protecting your personal data. This privacy policy will inform you about how we look after your personal data when you use our EventLink MacOS app and our companion server-side service at https://eventlink.host (collectively referred to as "Services") and tell you about your privacy rights and how the law protects you.
---
**1. IMPORTANT INFORMATION AND WHO WE ARE**