This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
@doc """ | |
Takes a list of Ecto.Enum fields and converts them into Absinthe enum | |
types. | |
## Usage | |
The list consists of tuples with the name of the GraphQL enum, the Ecto schema | |
module and the schema field using `Ecto.Enum`. | |
use Absinthe.Schema.Notation |
This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
import https from 'https' | |
export default function({ $axios }) { | |
const agent = new https.Agent({ | |
rejectUnauthorized: false | |
}) | |
$axios.onRequest(config => { | |
if (process.env.dev) { | |
config.httpsAgent = agent | |
} |
<script> | |
import allTravelsGql from '../../GQL/travel/allTravels.gql' | |
import {pagination, getSkipFirst} from '../../../generated-cms/util/pagination' | |
import {getTravelQuery, setCategoryOnQuery} from '../../util/getTravelQuery' | |
const buildQuery = variables => { | |
return { | |
query: allTravelsGql, | |
variables, | |
manual: true, |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
更新: | 2024-05-21 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
概要
# thanks Eli! https://github.com/seemethere | |
import os | |
import asyncio | |
import uvloop | |
from asyncpg import connect, create_pool | |
from sanic import Sanic | |
from sanic.response import json |
# An example of using SQLAlchemy / PSQL for PubSub with asyncio | |
# Rather than using `select.select` to watch for messages, we use | |
# `loop.add_reader`. | |
# Inspired by: https://gist.github.com/dtheodor/3862093af36a1aeb8104 | |
# | |
# One example of use is with aiopyramid. | |
# | |
# For an additional consideration, read about case folding here: | |
# http://stackoverflow.com/a/5173993/465164 |