Skip to content

Instantly share code, notes, and snippets.

View cvic's full-sized avatar
🤖
(def Y (fn [f] ((fn [x] (x x)) (fn [x] (f (fn [y] ((x x) y)))))))

Vic cvic

🤖
(def Y (fn [f] ((fn [x] (x x)) (fn [x] (f (fn [y] ((x x) y)))))))
View GitHub Profile
@avestura
avestura / why-go-bad.md
Last active April 17, 2025 14:37
The reasons why Golang is a bad language, according to my friend.

Written by @trgwii, not me:

Why Go is bad?

"If Go wasn't made by Google, what would be bad about it?" Stafn asked.

And this is the response from Thomas:

  1. uncomposable error handling, this is like being back to:
@mttaggart
mttaggart / electron-versions.csv
Last active April 26, 2025 02:21
CVE-2023-4863 Electron App Tracker | THIS LIST IS NOW DEPRECATED. PLEASE VISIT https://github.com/mttaggart/electron-app-tracker FOR THE LATEST DATA
app_name repo electron_version vulnerable
1Clipboard https://github.com/wiziple/1clipboard
1Password None 25.8.1 FALSE
3CX Desktop App 19.0.8 TRUE
5EClient None
Abstract None
Account Surfer None
Advanced REST Client https://github.com/advanced-rest-client/arc-electron ^17.0.0 TRUE
Aedron Shrine None
Aeon https://github.com/leinelissen/aeon 23.2.0 TRUE
@bowbahdoe
bowbahdoe / Continuation.java
Created July 17, 2023 15:46
Continuation Proxy Classes
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
public final class Continuation {
final Object impl;
static final Class<?> IMPL_CLASS;
static final MethodHandle NEW;
static final MethodHandle YIELD;
@swatson555
swatson555 / heap-lisp.c
Created February 17, 2023 12:42
Heap based scheme machine.
/* Heap based virtual machine described in section 3.4 of Three Implementation Models for Scheme, Dybvig
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
char token[128][32];
@veekaybee
veekaybee / chatgpt.md
Last active October 16, 2025 08:47
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@MrGung
MrGung / get_all_issues.clj
Created December 6, 2022 08:52
Get paginated list of issues from gitlab with clojure/babashka
(defn get-all-issues
"Holt alle Issues. Verwendet `iteration` für die Pagination."
[gitlab-config project-id]
(let [{:keys [gitlab-token gitlab-root]} gitlab-config
curl-options {:raw-args ["--insecure"]
:debug true
:throw false
:headers {:PRIVATE-TOKEN gitlab-token
:Content-Type "application/json; charset=utf-8"}}
step (fn step [marker-token]
@yogthos
yogthos / README.md
Last active March 24, 2024 10:35
command line util for grabbing current weather for a city using OpenWeather API

usage

Create an account at https://openweathermap.org and get an API key. Note that it can take up to a couple of hours for the key to become active. Add an environment variable OPEN_WEATHER_API_KEY with the value of the key.

run the script:

./weather.clj Toronto,CA
@ssrihari
ssrihari / clojure-learning-list.md
Last active October 15, 2025 17:42
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
@mbillingr
mbillingr / cps.py
Created August 14, 2021 13:23
Continuation Passing Style in Python
"""
Implementing Continuation Passing Style (CPS) in Python.
In CPS every function call ends with a tail-call to its continuation.
Since Python does not optimize tail calls we would run out of stack
quickly. Instead of calling the continuation, we return it and its
arguments to an execution loop, which is responsible for invoking the
continuation function. Thus, we regularly return to the execution
loop and the stack remains bounded.
This is actually a simple version of trampolining, which is used to
@tkersey
tkersey / the-alegbra-of-typescript.md
Last active October 17, 2021 06:08
The Algebra of [Type,Script]

Algebra

Symbols Operations Laws
0, 1, 2, x, y, z, ... +, –, x, ÷, ... 0 + x = x, ...

Algebra

Symbols Operations Laws