Skip to content

Instantly share code, notes, and snippets.

@maratori
maratori / .golangci.yml
Last active January 9, 2026 13:01
Golden config for golangci-lint
# ==================================================================================================
#
# NOTICE
#
# This gist is no longer maintained. It was moved to repo:
#
# https://github.com/maratori/golangci-lint-config
#
# Full history and all v2 releases are preserved in the repo.
#
@jonahwilliams
jonahwilliams / main.dart
Created March 27, 2022 00:05
Hot Reload for Dart CLI
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:vm_service/vm_service_io.dart';
void main() async {
var process = await Process.start('dart', ['run', '--enable-vm-service', 'lib/main.dart']);
var completer = Completer<String>();
process.stdout
.transform(utf8.decoder)
-- vim: tabstop=2 shiftwidth=2 expandtab
-- We almost always start by importing the wezterm module
local wezterm = require 'wezterm'
-- Define a lua table to hold _our_ module's functions
local module = {}
-- Returns a bool based on whether the host operating system's
-- appearance is light or dark.
function module.is_dark()