uname -marm64means Apple Silicon (M1 or later). Usefresh-editor-aarch64-apple-darwin.tar.xzx86_64means Intel. Usefresh-editor-x86_64-apple-darwin.tar.xz
| ================================================================================ | |
| VS Code "AI & agents" — cloc, subtree by subtree | |
| ================================================================================ | |
| repo microsoft/vscode @ bf715befd589605be045505d0456e4246054566f (1.140.0) | |
| cloc 1.98 | |
| flags --quiet --skip-uniqueness --force-lang=TypeScript,mts | |
| --include-lang=TypeScript,JavaScript,Rust | |
| --not-match-f='\.d\.ts$|\.min\.js$' | |
| --exclude-dir=node_modules,out,out-build,.build,typings,vscode-dts, | |
| fixtures,colorize-fixtures,dist,vendor |
This document provides a guide for integrating new editors with the AMP protocol, based on the amp.nvim implementation.
The AMP integration is based on a WebSocket protocol. One editor acts as a server (in the case of amp.nvim, this is Neovim itself), and other tools or editor integrations act as clients.
A client connects to the server to send requests (like reading or editing a file) and receive responses and notifications (like when a file changes or the selection is updated).
| import threading | |
| import os | |
| import sys | |
| BLOCK_SIZE = 1024*1024 | |
| THREADS = 16 | |
| def write_range(source, target, start, amount, block_size): | |
| with open(source, 'r') as source_file: | |
| with open(target, 'r+') as target_file: |
| #!/bin/bash | |
| set -eu | |
| BRANCH_A="$1" | |
| shift | |
| BRANCH_B="$1" | |
| shift | |
| PATHS="$@" | |
| BRANCH_A_COMMITS=$(mktemp) | |
| ONLY_IN_BRANCH_A=$(mktemp) | |
| BRANCH_B_COMMITS=$(mktemp) |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <pthread.h> | |
| #include <stdlib.h> | |
| #include <stdatomic.h> | |
| #define CACHELINE__BYTECOUNT (64) | |
| struct Data { | |
| uint8_t bytes[CACHELINE__BYTECOUNT - 4]; |
| #!/bin/bash | |
| set -eu | |
| # Similar to git branch --merged but looks at commit author, date and | |
| # subject, instead of hash. | |
| # | |
| # Given branch/ref (e.g. my_branch) and target (e.g. origin/master), | |
| # lists commits in branch that have no "equivalent" ones in target (by | |
| # author, date and message). |
| -- run it like: | |
| -- stack ghc --package criterion -- binary.hs -Wall -O2 && ./binary | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE BangPatterns #-} | |
| module Main where | |
| import Data.ByteString.Lazy (ByteString) | |
| import Data.Binary | |
| import Data.Fixed |
| /*jsl:option explicit*/ | |
| "use strict"; | |
| // ///////////////////////////////////////////////////////////////////// | |
| // // JQUERY EXTENSIONS | |
| /* Removed this part.. */ | |
| ///////////////////////////////////////////////////////////////////// | |
| // STRING FORMATTING |
| {-# LANGUAGE ExistentialQuantification #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE StandaloneDeriving #-} | |
| -- | | |
| module Main where | |
| import Control.Applicative (Alternative(..), (<|>)) | |
| import Data.List (foldl', intercalate) | |
| import Data.Monoid ((<>)) |