Keybinding | Action |
---|---|
Alt + f/b | Move cursor to previous/next word |
Ctrl + a/e | Move cursor to beginning/end of command |
Ctrl + xx | Toggle between the start of line and current cursor position |
Discover gists
#Enabling SocketCAN on WSL2 Preface: this walkthrough is a hand-holdy step by step tutorial to enable SocketCan on your WSL2 instance (Ubuntu 20.04).
To enable SocketCAN's can-utils on WSL we need to enable the CAN interface module in the WSL, to do so requires a re-building of the WSL kernel.
Requirements:
- WSL2
- back up your wsl image (optional) follow here (wsl2-backup-and-restore-images) Steps: First we will update wsl and our linux to the latest versions.
These rules are adopted from the AngularJS commit conventions.
This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.
"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.
"use client"; | |
import type { Job } from "@/payload-types"; | |
import { gql, useQuery } from "@apollo/client"; | |
import { useDocumentInfo, useForm } from "@payloadcms/ui"; | |
import { useEffect, useState } from "react"; | |
const WarehouseIdQuery = gql(/* GraphQL */ ` | |
query WarehouseIdQuery { | |
Addresses(where: { type: { equals: warehouse } }) { |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:
- June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
- August 2021 - get historical fantasy league data
- September 2021 - list of endpoints in plain text
- May 2023 - collapsed endpoint response examples
Additional Resources
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'
# Rime dictionary | |
# encoding: utf-8 | |
# | |
# kuankhiunn - 廣韻羅馬字 | |
# | |
# 基於Polyhedron、有女同車整理的《廣韻全字表》製作 | |
# 拼寫方案採用有女同車羅馬字,佛振根據有女同車的修改意見改編 | |
# | |
--- |