A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
{- Implementation of BST (binary search tree) | |
Script is absolutly free/libre, but with no guarantee. | |
Author: Ondrej Profant -} | |
import qualified Data.List | |
{- DEF data structure -} | |
data (Ord a, Eq a) => Tree a = Nil | Node (Tree a) a (Tree a) | |
deriving Show |
module Bencode where | |
import Data.Maybe (fromJust) | |
import Control.Monad (liftM) | |
import Control.Applicative | |
import Data.ByteString.Char8 as BS | |
import Data.Attoparsec.ByteString.Char8 as A hiding (string) | |
import qualified Text.Show.Pretty as Pr | |
data Bencode = String ByteString |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { |