Package | Description |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix | |
# use zfs from current master instead of nixos bundled versoin | |
./zfs-master.nix | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, runCommand, electron, callPackage, | |
bash, python, jq, nodejs-8_x, node? nodejs-8_x, neovim, ripgrep, xorg, | |
...}: | |
let | |
yarn2nix = callPackage ( builtins.fetchTarball { | |
url = "https://github.com/phryneas/yarn2nix/archive/8a6b9dcf7cef8840eb7bc64d7639bad566af2e9d.tar.gz " ; | |
sha256 = "0ih11vcd9ad5y13877bxz7ijsykhqwdfwmvwhic3xlgcdhxji80v"; | |
}) {}; | |
version = "v0.3.6"; | |
oniSrc = builtins.fetchTarball { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { resolve } from 'path'; | |
export default { | |
modifyBundlerConfig: config => { | |
const orig = config.module.rules[2]; | |
const origUse = orig.use; | |
orig.use = [ | |
origUse[0], | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="react" /> | |
import { ComponentClass } from 'react'; | |
import * as CSS from 'csstype'; | |
import * as PropTypes from 'prop-types'; | |
import React from 'react'; | |
declare interface AbstractAction { | |
type: string; | |
meta: { | |
counter: number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Baseed on previous attempts of others: https://github.com/NixOS/nixpkgs/issues/41189 | |
{ lib, vscode-utils, autoPatchelfHook, bash, file, makeWrapper, dotnet-sdk | |
, curl, gcc, icu, libkrb5, libsecret, libunwind, libX11, lttng-ust, openssl, utillinux, zlib | |
, enableDiagnosticsWorkaround ? false, gccStdenv | |
}: | |
with lib; | |
let | |
# https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#remove all git tags | |
git tag | xargs git tag -d | |
#re-apply all git tags with commit name => tag name | |
git log --pretty=%s---%H | sed -re 's/[^a-zA-Z0-9-]/_/g;s/---/ /' | xargs -n2 git tag | |
git tag --format="%(objectname) => %(refname)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{pkgs, lib, config, ...}: | |
with lib; | |
let | |
liveshareGist = builtins.fetchTarball { | |
url = "https://gist.github.com/phryneas/698996d24748d3ce7f61ef818949a28e/archive/3dbf12cd282ebcb6cacf40d466e4a519d4ce1dfe.tar.gz"; | |
sha256 = "0mas9rnr6hn7yiivjs5xvnprhrqwac47nqfxh3vgmm67v982v83l"; | |
}; | |
livesharePkg = pkgs.callPackage liveshareGist {}; | |
cfg = config.services.vsliveshare; | |
pkg = livesharePkg.override { enableDiagnosticsWorkaround = cfg.enableDiagnosticsWorkaround; }; |
So, there is a long-standing TypeScript & Redux pattern of creating a union RootAction
type that contains all your application's action types. Sometimes, you would also create a lot of reducer-specific sub-unions.
I think that this has always been a crutch - and given the options we have today, it's most likely an antipattern.
So let's look at why it was used, where it was used and what you can use instead.
Classically, these action union types were created to use the Discriminating Union pattern.