Each section should be run as the user or as root, pay attention to which one!
As $USER
curl https://nixos.org/nix/install | sh
| <?php | |
| // Your PHP code here | |
| ?> | |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
| {-# OPTIONS_GHC -Wall #-} | |
| {-# LANGUAGE DeriveAnyClass #-} | |
| {-# LANGUAGE DeriveDataTypeable #-} | |
| {-# LANGUAGE LambdaCase #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE PartialTypeSignatures #-} | |
| module RegAlloc1 | |
| ( -- * Types | |
| Var |
| ;; PRETTIFY SYMBOLS (with Pragmata Pro) | |
| (defun setup-pragmata-ligatures () | |
| (setq prettify-symbols-alist | |
| (append prettify-symbols-alist | |
| '(("!!" . ?) | |
| ("!=" . ?) | |
| ("!==" . ?) | |
| ("!≡" . ?) | |
| ("!≡≡" . ?) | |
| ("!>" . ?) |
Do your part to resist Government surveillance and take back your privacy:
| import Data.List | |
| import Data.Foldable | |
| import Data.Traversable | |
| import Control.Applicative | |
| import Control.Monad (ap) | |
| import Prelude.Extras | |
| import Bound |
| {-# LANGUAGE RankNTypes, DeriveFunctor #-} | |
| {-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-} | |
| module Main where | |
| import Criterion.Main (defaultMain, bench, bgroup, nf) | |
| -------------------------------------------------------------------------------- | |
| -- Fixed points of a functor | |
| newtype Mu f = Mu { muF :: f (Mu f) } |
| {-# LANGUAGE CPP #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| module Intern where | |
| import GHC.Generics (Generic) | |
| import Data.Function (on) | |
| import Data.Hashable |
| require 'bundler/capistrano' | |
| set :application, "net" | |
| set :repository, "[email protected]:net.git" | |
| set :scm, :git | |
| set :default_environment, { | |
| 'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" | |
| } |
| -- Inspired by the writings of Edward Kmett, Edward Yang and Gabriel Gonzalez | |
| -- concerning free monads and the codensity transformation. | |
| -- | |
| -- http://comonad.com/reader/2011/free-monads-for-less/ | |
| -- http://blog.ezyang.com/2012/01/problem-set-the-codensity-transformation/ | |
| -- http://www.haskellforall.com/2012/06/you-could-have-invented-free-monads.html | |
| -- | |
| {-# LANGUAGE RankNTypes #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE FlexibleInstances #-} |