Start with modMain.bas
Full repo: https://github.com/mihai-vlc/learnxinyminutes-vba
| // A launch configuration that launches the extension inside a new window | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Run Extension", | |
| "type": "extensionHost", |
| const sax = require('sax'); | |
| function escapeAttr(s) { | |
| return s.replace(/&/g, '&') | |
| .replace(/</g, '<') | |
| .replace(/"/g, '"') | |
| .replace(/\t/g, '	') | |
| .replace(/\n/g, '
') | |
| .replace(/\r/g, '
'); | |
| } |
| vim.g.mapleader = ' ' | |
| vim.g.netrw_winsize=25 | |
| vim.g.netrw_browse_split = 4 | |
| vim.o.number = true | |
| vim.o.wrap = false | |
| vim.o.tabstop = 4 | |
| vim.o.shiftwidth = 4 | |
| vim.o.showtabline = 2 | |
| vim.o.expandtab = true |
| import React, { useState } from "https://esm.sh/react?dev"; | |
| const Title = (await importJSX("./components/Title.jsx")).default; | |
| export default function App() { | |
| const [count, setCount] = useState(0); | |
| function handleClick() { | |
| setCount((c) => c + 10); | |
| } |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| VERSION="1.0.0" | |
| main() { | |
| local action="${args[0]}" |
Start with modMain.bas
Full repo: https://github.com/mihai-vlc/learnxinyminutes-vba
| function gtcmf { | |
| $hash = $(git log --grep=fixup --invert-grep --max-count=1 --pretty=%h) | |
| git commit --fixup $hash | |
| } | |
| function gtfix { | |
| $hash = $(git log --grep=fixup --invert-grep --max-count=1 --pretty=%h) | |
| git rebase --interactive --rebase-merges --autostash --autosquash $hash^ | |
| } |
| import { wordWrap } from "./word"; | |
| import readline from "readline"; | |
| const rl = readline.createInterface(process.stdin, process.stdout); | |
| let i = 0; | |
| rl.setPrompt(`Text(${i}) = `); | |
| rl.prompt(); | |
| rl.on("line", (line) => { |
| --[[ | |
| THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT | |
| `lvim` is the global options object | |
| ]] | |
| -- Enable powershell as your default shell | |
| vim.opt.shell = "pwsh.exe -NoLogo" | |
| vim.opt.shellcmdflag = | |
| "-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;" | |
| vim.cmd [[ |
| godoc -http=:6060 -index & | |
| Start-Sleep -Seconds 2 | |
| Start-Process "http://localhost:6060" |