Skip to content

Instantly share code, notes, and snippets.

@veekaybee
veekaybee / normcore-llm.md
Last active November 15, 2024 12:06
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@randomor
randomor / App.swift
Last active February 19, 2021 20:59
SwiftUI 2020 + CloudKit + Core Data ZenJournal prototype: https://thezenjournal.com
import SwiftUI
import CoreData
let appTransactionAuthorName = "app"
@main
struct ZenJournalApp: App {
var body: some Scene {
WindowGroup {
@tinti
tinti / aes-256-gcm.go
Last active May 8, 2021 15:37 — forked from cannium/aes-256-gcm.go
golang aes-256-gcm
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/hex"
"flag"
"fmt"
"io"
Getting started:
1. Follow this tutorial: https://github.com/AssemblyScript/assemblyscript/wiki/Hello-World to get your environment setup
2. Change the scripts section of your package.json to the one provided in this gist (the only real difference is the --use abort= tag).
3. Use the module.ts provided in this gist for your module source (in the assembly directory).
4. "npm run build" will create your binaries (perhaps you have to mkdir build first though).
5. Uploading to eos requires an abi file, using one of another contract is completely fine though, as our contract does not use any action data.
=> After uploading the abi together with build/untouched.wasm you can push an action to your contract and Hello, World! will be printed.
@muka
muka / install-protoc.sh
Last active March 20, 2018 14:04
How to install protoc to use with grpc
#Get a release here https://github.com/google/protobuf/releases
sudo -s
cd /usr/local/include
mkdir google
wget https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip -O protoc.zip
unzip protoc.zip -d tmp
@sadovnik
sadovnik / nvim-python-match-tag-always.md
Last active April 19, 2021 05:09
neovim nvim MatchTagAlways error fix

If you get this error when open neovim:

$ nvim

MatchTagAlways unavailable: requires python.
Press ENTER or type command to continue

Try to install neovim package:

@joyrexus
joyrexus / README.md
Last active August 6, 2024 16:07
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@craigbeck
craigbeck / introspection-query.graphql
Created April 6, 2016 20:20
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
@Restuta
Restuta / framework-sizes.md
Last active September 19, 2024 15:32
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@AntoineAugusti
AntoineAugusti / limitConcurrentGoroutines.go
Last active July 30, 2024 17:58
Limit the maximum number of goroutines running at the same time
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {