Skip to content

Instantly share code, notes, and snippets.

@ayrbox
ayrbox / info.json
Created November 4, 2025 10:37
registry-info
{"version":"2025-11-04-lonely-mantle","download_timestamp":1762251119,"checksums":{"registry.json.zip":"5f9c8f212e349ed64d146e55dc9421edd825ea18bc25c416546c048b1ac99958","registry.json":"f508aaf775176cbe83b7c211aada06ae208388bc9a8b5d7167dea188d980bc88"}}
@ayrbox
ayrbox / json
Last active November 4, 2025 10:36
remp.json
[
{
"name": "actionlint",
"description": "Static checker for GitHub Actions workflow files.",
"homepage": "https://github.com/rhysd/actionlint",
"licenses": [
"MIT"
],
"languages": [
"YAML"
@ayrbox
ayrbox / cli.js
Created December 18, 2024 01:08
Dynamically import and execute scripts
// cli.js in the app
#!/usr/bin/env node
import path from "path"
console.log("Hello dynamic import")
// load file and run
const rootDir = process.cwd();
@ayrbox
ayrbox / merge.py
Created September 27, 2023 20:53
Merger PDF Files
import sys
from os import path
from pypdf import PdfMerger
from glob import glob
path_arg = sys.argv[1]
folder = path.abspath(path_arg)
if not path.isdir(folder):
@ayrbox
ayrbox / main.go
Created May 2, 2023 21:10
Find endpoint
package main
import "fmt"
func main() {
fromIds := []string{"1", "2", "3", "4", "5", "6", "7", "9"}
toIds := []string{"3", "6", "4", "6", "", "9", "3", "5"}
endpoint := findNewtworkEndpoint("9", fromIds, toIds)
@ayrbox
ayrbox / find-path-in-grid.ts
Created January 16, 2022 23:06
Find Path in Grid
const grid: number[][] = [
[0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1],
[0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1],
[1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1],
[0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1],
[1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0],
[1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0],
[0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0],
@ayrbox
ayrbox / NewDomains.txt
Created October 28, 2021 21:03
.new Domains
github.new # Github Repository
repo.new # Github Repository
gist.new # Gist
docs.new # Google Document
doc.new # Google Document
sheet.new # Google Sheet
sheets.new # Google Sheet
slide.new # Google Slide
slides.new # Google Slide
form.new # Google Form
@ayrbox
ayrbox / .vimrc
Last active October 4, 2021 21:18
Vim Config to yank to system clipboard
" yank to clipboard
if has("clipboard")
set clipboard=unnamed " copy to the system clipboard
if has("unnamedplus") " X11 support
set clipboard+=unnamedplus
endif
endif
@ayrbox
ayrbox / class_tut.js
Created September 28, 2021 16:02
Class and Object Learning
class Car {
constructor(make, model, price, color) {
this.make = make;
this.model = model;
this.price = price;
this.color = color;
}
printCarInfo() {
console.log("-------------------------------");
console.log("Car: " + this.make + "(" + this.model + ")");
filetype plugin on
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
Plug 'mbbill/undotree'