Skip to content

Instantly share code, notes, and snippets.

View Evertt's full-sized avatar

Evert van Brussel Evertt

View GitHub Profile

How to use

  1. Open up the app Script Editor.
  2. Create new document and paste in the code you can find below.
  3. Click File -> Export... and make sure to export it as an Application in the Applications folder. Also leave every checkbox unchecked and make sure to Code Sign it for Local Use.
  4. When you run the resulting app for the first time (and possibly the second time), you'll probably get a notification that it requires a certain permission. Just follow the instructions to do that.

Optionally

You can give the new app the same icon as Arc itself, like so:

You could even automate this test to some extend. By letting the other characters (which would normally be written by humans) be written by a variety of the top LLMs at the time. But it would be important that every individial charachter would be written by a unique LLM, so that it hopefully brings in more chaos and unique challenges for the AI (that's being tested) to overcome.

@Evertt
Evertt / curriculum.md
Created November 15, 2023 12:31
Socio-Emotional Development For Teens

Socio-Emotional Development

This class is all about understanding our feelings and learning to interact better with others. Here are the key topics we'll explore:

Observing vs Interpreting vs Feeling

Explanation

When we chat with friends or family, we often mix up three things: what we see (observations), what we think it means (interpretations), and how we feel (feelings).

@Evertt
Evertt / delete_related_profile_data.sql
Last active March 29, 2020 13:20
Delete all data related to deleted profiles
@Evertt
Evertt / FilterExpander.swift
Last active March 18, 2020 10:25
FilterExpander
import Foundation
struct FilterExpander {
let filters = [
// These filters expand normally
"filter1": "due today & !$filter2",
"filter2": "@some_label | $filter3",
"filter3": "#Project",
// These filters throw an error,
@Evertt
Evertt / delete_fake_profiles.sql
Last active March 16, 2020 08:28
Delete fake profiles based on suspicious middle names (infixes)
# The following query shows you a list of profiles with suspicious middle names / infixes:
SELECT * FROM `profiles`
WHERE `name_middle` NOT REGEXP "^[\s\t]*$|^ *((van|la|af|onder|bij|in|uij?t|tot|op|over|aan|[td]e[rn]?|het|d?['´][st]?)( +|$))+$"
ORDER BY `created` DESC;
# I suggest you look through that list and mark all the IDs of profiles that look legitimate.
# If you find that profiles 14367 and 14348 look legitimate and you want to exclude them from the list,
# then you can exclude those profiles like so:
import SwiftUI
import Combine
/// This is a wrapper class to wrap a struct with
public class Objectified<Value>: BindableObject {
public let didChange = PassthroughSubject<Void, Never>()
public var value: Value {
didSet {
didChange.send(())
@Evertt
Evertt / store.ts
Created May 14, 2017 14:58
Demonstrating a bug I'm having in Typescript
import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
interface Todo {
id : number,
userId : number,
title : string,
completed : boolean
}
@Evertt
Evertt / App.swift
Created October 28, 2016 23:14
What am I doing? CQRS?
import Foundation
public struct Tab {
static var tabs = [UUID:Tab]()
var state: State
static func handle(_ command: Command, for id: UUID) throws {
switch command {
case let .open(table: table, waiter: waiter):
public protocol Event {}
public enum Listener<E: Event> {
public typealias T = E -> ()
}
public protocol Dispatcher {
func listen<E: Event>(listener: Listener<E>.T)
func fire<E: Event>(event: E)
func push<E: Event>(event: E)