Did you know that it is rather easy to setup a VM to test your NixOs configuration?
# flake.nix
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";| { pkgs ? import <nixpkgs> {} | |
| , pythonPackages ? pkgs.python36Packages | |
| }: | |
| with pkgs; | |
| let self = rec { | |
| # patches |
| plotSpectrum1 lattice n m = toFile def file $ do | |
| layout_title .= "Spectrum of '" ++ name ++ "'" | |
| layout_x_axis . laxis_title .= "momentum k (" ++ show m ++ " points)" | |
| layout_y_axis . laxis_title .= "energy E" | |
| setColors $ colorGradient blue (length rows) | |
| forM_ rows $ \row -> plot (line "band" [row]) | |
| where | |
| ... |
| *.tar.gz | |
| .sentinel.* |
##VGG16 model for Keras
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
| -- | Main entry point to the application. | |
| module Main where | |
| import Control.Monad.Reader | |
| import Control.Monad.Writer | |
| {- | |
| The ReaderT transformer is used to retrieve a read-only value from some environment. | |
| The WriterT transformer will log the result of each retrieval. | |
| Running the two transformers together yields a log of each step along with the actual results. |
| { | |
| "name": "Root", | |
| "children": [ | |
| { | |
| "name": "Branch 1", | |
| "children": [ | |
| {"name": "Leaf 3"}, | |
| {"name": "Leaf 4"} | |
| ] | |
| }, |
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |