Skip to content

Instantly share code, notes, and snippets.

View fallsimply's full-sized avatar

fall simply fallsimply

View GitHub Profile
@t3dotgg
t3dotgg / model-prices.csv
Last active May 3, 2025 23:03
Rough list of popular AI models and the cost to use them (cost is per 1m tokens)
Name Input Output
Gemini 2.0 Flash-Lite $0.075 $0.30
Mistral 3.1 Small $0.10 $0.30
Gemini 2.0 Flash $0.10 $0.40
ChatGPT 4.1-nano $0.10 $0.40
DeepSeek v3 (old) $0.14 $0.28
ChatGPT 4o-mini $0.15 $0.60
DeepSeek v3 $0.27 $1.10
Grok 3-mini $0.30 $0.50
ChatGPT 4.1-mini $0.40 $1.60
@catalinmiron
catalinmiron / README.md
Created April 16, 2024 20:36
Expo app.json Apple Privacy Manifest

About

The privacy details that you may need to add for Apple Privacy Manifest.

This config plugin it's already available from expo >=50.0.17 (Part of this PR by aleqsio)

Tip

Read more about Privacy Manifest File from Apple docs

@gabe565
gabe565 / change-arc-icon.md
Last active April 28, 2025 04:28
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@Andy-set-studio
Andy-set-studio / _readme.md
Last active August 11, 2023 19:05
Initial 1000 items, grouped

This is from an initial grab of 1000 items from https://viewport-logger.netlify.app/.

There's a count of 630 items because they are grouped. The count property is how many instances of that width and height combo exist in the raw dataset.

@arrowtype
arrowtype / set-default-wght-to-400.py
Last active January 10, 2025 01:36
A Python script to set the default instance of a variable font’s Weight axis to 400 (Regular).
"""
A script to set the default instance of a variable font’s wght axis to 400 (Regular).
From https://gist.github.com/arrowtype/9fefe9633cae500bbaf0000230f6a3ed
This can perhaps be more intuitive to designers who expect "Regular" to be the default weight of a variable font,
or for web developers who don’t set a weight range in their @font-face webfont setup.
This could be easily adapted to set defaults along other axes. It simply uses the FontTools Instancer module.
package main
import (
"fmt"
"log"
"strings"
"golang.org/x/net/html"
)
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active April 24, 2025 16:22
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

function partition(inputArray, callback) {
const result = {};
for (const [indexOfValue, value] of inputArray.entries()) {
const propertyKey = callback(value, indexOfValue);
if (propertyKey === null || propertyKey === '') {
continue;
}
if (!{}.hasOwnProperty.call(result, propertyKey)) {
result[propertyKey] = [];
}