Sometimes you want to ignore certain files when you run git diff
, but you still want to check them
in, which means you can't capitalize on .gitignore
.
This guide is here to help.
How to set it up?
This is a proposal for a lightning talk at the Reactive 2015 conference.
NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut!
React just got stateless components, meaning that they are in essence pure functions for rendering. Pure functions make it dead simple - even fun - to refactor your views
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
module Test where | |
import GHC.Generics | |
import Data.Proxy | |
typeName :: forall a. (Generic a, GTypeName (Rep a)) => Proxy a -> String | |
typeName Proxy = gtypename (from (undefined :: a)) |
module Algebra where | |
import Prelude | |
import Control.Monad.Eff (Eff) | |
import Data.Maybe (Maybe(..)) | |
newtype ConsoleAlg f = ConsoleAlg | |
{ printLn :: String -> f Unit | |
, readLn :: f String |
This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE
environment variables to mitigate the effects of
NixOS/nixpkgs#38991.
To deploy it, copy the file into your /etc/nixos
folder using a file name
like multi-glibc-locale-paths.nix
. Then edit your configuration.nix
file to
contain the attribute:
imports = [ ./multi-glibc-locale-paths.nix ];
nix-shell -p yarn yarn2nix nodejs
package.nix
using yarn2nix
#!/usr/bin/env bash | |
# | |
# Usage: callPackage [src] [...nix-build args] | |
# | |
# A version of nix-build that uses nixpkgs.callPackage to fill in the | |
# arguments. | |
# | |
# * [src] can be a path or a URL. Defaults to . | |
# | |
# Example: |
d=document,b=d.body,a=Array.from,s=d.createElement("style"),s.innerText="."+a(d.querySelectorAll("div")).flatMap(c=>a(c.classList)).find(c=>c.includes("markup"))+"{color:#111111!important}",b.append(s),b.style.fontFamily="Noto Sans CJK JP"; |