Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |
| ;;; late-night-theme.el --- Late Night theme for Emacs 24 | |
| ;; Author: Alex Schroeder | |
| ;; Maintainer: Daehyub Kim <lateau at gmail.com> | |
| ;; URL: https://gist.github.com/4420862 | |
| ;; Version: 0.0 | |
| ;; Keywords: theme, color | |
| ;;; Commentary: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| (* | |
| RecursiveTypesAndFold-2.fsx | |
| Related blog post: http://fsharpforfunandprofit.com/posts/recursive-types-and-folds-2/ | |
| *) | |
| // ============================================== | |
| // PART 2 - Introducing Folds | |
| // ============================================== |
| (* The unfold function takes in | |
| a predicate (p) and | |
| a function (g) which takes an input (b). *) | |
| let rec unfold p g b = | |
| if p b then [] else | |
| (match g b with (a, bprime) -> | |
| a :: unfold p g bprime) | |
| ;; | |
| (* The iterate function takes in a function (f), |
| FROM elixir:latest | |
| # Install debian packages | |
| RUN apt-get update && \ | |
| apt-get install --yes build-essential inotify-tools postgresql-client git && \ | |
| apt-get clean | |
| ADD . /app | |
| # Install Phoenix packages |
| { config, pkgs, lib, ... }: | |
| { | |
| # This sway config is mostly based on https://nixos.wiki/wiki/Sway | |
| # which integrates sway with systemd in the style described here | |
| # https://github.com/swaywm/sway/wiki/Systemd-integration | |
| # and the replies in https://github.com/NixOS/nixpkgs/issues/57602 | |
| # with some individual packages added/removed and using sddm as the display manager. | |
| # | |
| # Take care to start the correct target as described by the sway proejct wiki. |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <openbox_config> | |
| <keyboard> | |
| <keybind key="XF86AudioMute"> | |
| <action name="Execute"> | |
| <command>bash ~/Projects/bin/volume mute</command> | |
| </action> | |
| </keybind> | |
| <keybind key="XF86AudioRaiseVolume"> |
| { pkgs ? import <nixpkgs> | |
| , lib ? pkgs.lib | |
| , desktopEnvironment | |
| }: with pkgs; | |
| desktopEnvironment { | |
| session-manager = emptty; | |
| window-manager = [ sway labwc ]; | |
| screen-display = { | |
| use = kanshi; # autorandr | |
| gui = wlay; |