-
jq — https://jqlang.github.io/jq/ — "like sed for JSON data"
There are several options available for installing jq. I prefer to use Homebrew:
brew install jq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| microgpt_dnb.py — Fork of Karpathy's microgpt with Dynamic Notes Bus | |
| Original: https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95 | |
| Paper: https://arxiv.org/abs/2512.10054 | |
| Code: https://github.com/logan-robbins/parallel-decoder-transformer | |
| Karpathy's microgpt is the complete GPT algorithm in ~200 lines of pure Python. | |
| This fork adds ~100 lines to show where the Dynamic Notes Bus (DNB), Shared | |
| Notes Cross-Attention (SNC), and Planner Head fit inside the transformer to |
- Create a file
Image.jsfrom the source below (it is almost a copy of Image.js from tiptap-extensions except that it has a constructor that acceptsuploadFunc(function to be called withimagebeing uploaded) and additional logicif(upload) { ... } else { ... previous base64 logic .. }in thenew Pluginsection.
import {Node, Plugin} from 'tiptap'
import {nodeInputRule} from 'tiptap-commands'
/**
* Matches following attributes in Markdown-typed image: [, alt, src, title]
*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install caddy mkcert nss dnsmasq | |
| mkcert -install | |
| mkcert '*.app.test' '*.cdn.test' | |
| # rename the certs and move them under /usr/local/etc/caddy/certs | |
| cat <<EOF > /usr/local/etc/caddy/Caddyfile | |
| *.app.test:443, *.cdn.test:443 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mount volume PWD on host to /app in container. | |
| shai@lappy ~/tmp/example-working-docker-compose-environment-vars [master *] ± % cat docker-compose.yml | |
| version: "3" | |
| services: | |
| some_server: | |
| ... | |
| volumes: | |
| - $PWD:/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # admin | |
| from django import admin | |
| from django.db import models | |
| from widget import TextareaWithCounter | |
| class MyModelAdmin(admin.ModelAdmin): | |
| formfield_overrides = { | |
| models.TextField: {'widget': TextareaWithCounter}, | |
| } | |
| class Media: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| let s = 0; | |
| let m = 0; | |
| let active = false; | |
| let timer; | |
| function setActive(a) { | |
| active = a; | |
| if(!active) { | |
| clearInterval(timer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| void main() { | |
| runApp(GetMaterialApp( | |
| initialRoute: '/login', | |
| getPages: [ | |
| GetPage( | |
| name: '/login', | |
| page: () => LoginPage(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- original code: https://github.com/ericelliott/cuid | |
| -- Add the "plv8" extension | |
| create extension if not exists "plv8"; | |
| -- Add the "pgcrypto" extension | |
| create extension if not exists "pgcrypto"; | |
| \dx | |
| -- Connect a database |
NewerOlder