nix-shell -p yarn yarn2nix nodejs
- copied the Nix skeleton files in place (./z/etc/lib/{version,nixpkgs}.nix ./z/etc/overlays/default.nix)
- generated
package.nix
usingyarn2nix
- add these Nix expressions in the root
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"; |
#!/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: |
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 ];
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 |
{-# 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)) |
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
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).