Start with modMain.bas
Full repo: https://github.com/mihai-vlc/learnxinyminutes-vba
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" |
(function() { | |
// restore the native console object | |
var i = document.createElement('iframe'); | |
i.style.display = 'none'; | |
document.body.appendChild(i); | |
window.console = i.contentWindow.console; | |
var script = document.createElement("script"); | |
script.src = "https://unpkg.com/[email protected]/axe.min.js"; | |
script.onload = function () { |
# For documentation, see https://www.sumatrapdfreader.org/settings/settings3-3-1.html | |
MainWindowBackground = #555555 | |
EscToExit = false | |
ReuseInstance = true | |
UseSysColors = false | |
RestoreSession = true | |
TabWidth = 350 | |
FixedPageUI [ |
I found that when we attempt to use the DLL generated by GO we get the following error:
fatal error: bad sweepgen in refill
runtime stack:
runtime.throw({0x807f8e?, 0xc0000c3df8?})
C:/Program Files/Go/src/runtime/panic.go:992 +0x76
runtime.(*mcache).refill(0x271caaf0a28, 0x2)
C:/Program Files/Go/src/runtime/mcache.go:156 +0x1ec