#nix #rust
Requires flakes to be enabled. {.is-warning}
There are a few pieces that make up a complete Nix workflow for building Rust crates:
#nix #rust
Requires flakes to be enabled. {.is-warning}
There are a few pieces that make up a complete Nix workflow for building Rust crates:
# Netlify configuration to set up a Mastodon handle for your own domain that | |
# forwards to your real account. This configuration allows people to search for | |
# me with @[email protected], and to find me @[email protected]. | |
# | |
# Put a configuration like this in a file called _redirects in the *publish | |
# directory* of your Netlify project. For my Gatsby site I put the file in | |
# static/_redirects, and at build time it gets copied to public/_redirects. | |
# | |
# Redirect documentation for Netlify is at https://docs.netlify.com/routing/redirects/redirect-options/ | |
# Test redirect rules in the playground, https://play.netlify.com/redirects |
With a bigger display 2x scaling might be too big. I'm trying out experimental support for fractional scaling in Gnome. To opt out again it is necessary to undo this experimental features setting:
$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
In addition to fractional scaling that setting allows different scaling factors per monitor!
The only issue I'm seeing so far is that apps running with XWayland look fuzzy. That includes web browsers. But! Firefox and Chrome both have opt-in support for Wayland which fixes the problem.
// Run with: deno run lazy-promise.js | |
// See https://github.com/sindresorhus/p-lazy | |
import PLazy from "https://cdn.skypack.dev/p-lazy" | |
const a = new PLazy(resolve => { | |
console.log("this code does not execute") | |
resolve() | |
}) |
import styles from "part:@sanity/base/theme/forms/text-input-style" | |
import FormField from "part:@sanity/components/formfields/default" | |
import { withDocument } from "part:@sanity/form-builder" | |
import PatchEvent, { set, unset } from "part:@sanity/form-builder/patch-event" | |
import * as React from "react" | |
import Datetime from "react-datetime" | |
class DatetimeInputRaw extends React.Component { | |
render() { |
/* | |
* Concept for emulating higher-kinded types using Flow. Instead of passing | |
* a type that has not been applied to parameters, this pattern passes | |
* a type-level function that will map a parameter type to the desired | |
* higher-kinded type applied to the given parameter. | |
* | |
* @flow | |
*/ | |
// a higher-kinded type is represented indirectly via a type-level function from |
@-moz-document url(chrome://browser/content/browser.xul), | |
url(chrome://browser/content/browser.xhtml) { | |
/* hide horizontal tabs at the top of the window */ | |
#TabsToolbar > * { | |
visibility: collapse; | |
} | |
/* hide navigation bar when it is not focused; use Ctrl+L to get focus */ | |
#main-window:not([customizing]) #navigator-toolbox:not(:focus-within):not(:hover) { |
{-# LANGUAGE NamedFieldPuns #-} | |
-------------------------------------------------------------------------------- | |
-- | | |
-- Module : Custom.Hooks.FloatFullScreenFirefox | |
-- | |
-- Maintainer : Jesse Hallett <[email protected]> | |
-- | |
-- As of version 57 Firefox for Linux does not set full screen state in Xorg | |
-- when entering full screen mode. This module exports an event hook that |
function promisify<T, Args: *> ( | |
taskFn: (...args: Args) => Task<T> | |
): Task<(...args: Args) => Promise<T>> { | |
/* ... */ | |
} |
import Html exposing (text) | |
import List exposing (concatMap, filter) | |
import List.Extra exposing (uniqueBy) | |
type alias CityId = Int | |
type alias City = | |
{ id: CityId | |
, name: String | |
} |