Nvim recognizes the following events. Names are case-insensitive.
BufAdd
Just after creating a new buffer which is
added to the buffer list, or adding a buffer
# Source: https://gist.github.com/vfarcic/02bbfaf6cf8f5b03f4267b50f3f3233b | |
######################################################### | |
# How To Create A "Proper" CLI With Shell And Charm Gum # | |
# https://youtu.be/U8zCHA-9VLA # | |
######################################################### | |
# Additional Info: | |
# - Charm Gum: https://github.com/charmbracelet/gum |
-- | |
-- Move this file to your neovim lua runtime path ie. ~/.config/nvim/lua/au.lua | |
-- | |
local cmd = vim.api.nvim_command | |
local function autocmd(this, event, spec) | |
local is_table = type(spec) == 'table' | |
local pattern = is_table and spec[1] or '*' | |
local action = is_table and spec[2] or spec | |
if type(action) == 'function' then |
The only people entitled to say how open source 'ought' to work are people who run projects, and the scope of their entitlement extends only to their own projects.
Just because someone open sources something does not imply they owe the world a change in their status, focus and effort, e.g. from inventor to community manager.
As a user of something open source you are not thereby entitled to anything at all. You are not entitled to contribute. You are not entitled to features. You are not entitled to the attention of others. You are not entitled to having value attached to your complaints. You are not entitled to this explanation.
If you have expectations (of others) that aren't being met, those expectations are your own responsibility. You are responsible for your own needs. If you want things, make them.
#!/bin/zsh | |
# Author: "Emir Herrera" <[email protected]> | |
# Donations: http://paypal.me/emirhg | |
# | |
# A GIT Hook to Pregenerate a Commit Message with an elapsed working time taken from the time tracker ActivityWatch. A `ref #123 @1.h` message like is generated taking the activity number from the branch name and te time from ActivityWatch Web API. Requires JQ in order to add all the events recorded by ActivityWatch | |
# | |
# Usage: | |
# | |
# copy this file under "${GIT_WORKING_TREE}/.git/hooks/prepare-commit-msg and set execution permitions | |
# |
Firstly, Create React App is good. But it's a very rigid CLI, primarily designed for projects that require very little to no configuration. This makes it great for beginners and simple projects but unfortunately, this means that it's pretty non-extensible. Despite the involvement from big names and a ton of great devs, it has left me wanting a much better developer experience with a lot more polish when it comes to hot reloading, babel configuration, webpack configuration, etc. It's definitely simple and good, but not amazing.
Now, compare that experience to Next.js which for starters has a much larger team behind it provided by a world-class company (Vercel) who are all financially dedicated to making it the best DX you could imagine to build any React application. Next.js is the 💣-diggity. It has amazing docs, great support, can grow with your requirements into SSR or static site generation, etc.
{ | |
"title": "JSON schema for the TypeScript compiler's configuration file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"definitions": { | |
"filesDefinition": { | |
"properties": { | |
"files": { | |
"description": "If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included.", | |
"type": "array", |
#!/bin/bash | |
clang-format -style="{\ | |
BasedOnStyle: Google, \ | |
AccessModifierOffset: -2, \ | |
AlignEscapedNewlines: DontAlign, \ | |
AlignTrailingComments: false, \ | |
AllowShortFunctionsOnASingleLine: Inline, \ | |
AllowShortIfStatementsOnASingleLine: false, \ | |
AllowShortLoopsOnASingleLine: false, \ |
#!/usr/bin/env bash | |
# TODO: Look at nixpkgs/pkgs/build-support/setup-hooks/auto-patchelf.sh | |
# https://ms-vsliveshare.gallery.vsassets.io/_apis/public/gallery/publisher/MS-vsliveshare/extension/vsliveshare/0.3.423/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage | |
set -eu | |
TOOLS="patchelf xsel" | |
DEPS="utillinux.out openssl.out icu zlib curl.out lttng-ust libsecret libkrb5" |