Use these together with https://redsweater.com/fastscripts/ for global hotkey goodness in macOS
Requirements:
brew install fastscripts
Download all the scripts and put them in ~/Library/Scripts/
(function (win, doc) { | |
'use strict'; | |
if (!doc.querySelectorAll || !win.Intl || !win.Intl.RelativeTimeFormat) { | |
// doesn't cut the mustard. | |
return; | |
} | |
var rtf = new Intl.RelativeTimeFormat('en', { | |
localeMatcher: 'best fit', | |
numeric: 'always', | |
style: 'long' |
#!/usr/bin/env ruby -W1 | |
# frozen_string_literal: true | |
# This script scans an RSS feed for the latest post, and if | |
# it hasn't already been posted to Mastodon, creates a new | |
# toot with a link to it. | |
require 'json' | |
require 'optparse' | |
require 'rss' |
#!/bin/sh | |
# usage: | |
# ql /tmp/file.jpg | |
# cat /tmp/file.jpg | ql | |
# cal -h | ql | |
if [ -z "$*" ]; then | |
cat > /tmp/ql.stdin | |
mime_type=$(file --brief --mime-type /tmp/ql.stdin) |
import * as bcrypt from "bcrypt"; | |
import { createCookieSessionStorage, redirect } from "remix"; | |
import { db } from "./db.server"; | |
export type LoginForm = { | |
username: string; | |
password: string; | |
}; |
Use these together with https://redsweater.com/fastscripts/ for global hotkey goodness in macOS
Requirements:
brew install fastscripts
Download all the scripts and put them in ~/Library/Scripts/
import React from 'react' | |
import useCustomScrollbars, { scrollbarWidth } from './useCustomScrollbars' | |
const Container = React.forwardRef(({ bg, children, ...props }, ref) => { | |
const [localRef, scrollbarsShown, scrollbarStyles] = useCustomScrollbars( | |
children, | |
ref, | |
bg | |
) |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
Guiding frameworks
First, add dired+
to dotspacemacs-additional-packages
, then...
Before user-config
in .spacemacs:
(defvar ao/v-dired-omit t
"If dired-omit-mode enabled by default. Don't setq me.")
(defun ao/dired-omit-switch ()
"This function is a small enhancement for `dired-omit-mode', which will