This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from .app import start_cli_service | |
env = (os.environ.get("env") or "prod").lower() | |
is_dev = env == "dev" or env == "local" | |
port, autoreload_observer = start_cli_service(autoreload=is_dev) | |
if autoreload_observer: | |
# move autoreload observer to the foreground so process won't exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# prints colored text | |
print_style () { | |
if [ "$2" == "info" ] ; then | |
COLOR="96m"; | |
elif [ "$2" == "success" ] ; then | |
COLOR="92m"; | |
elif [ "$2" == "warning" ] ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Copyright (C) 2016 Jeffrey S. McAnarney | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
as published by the Free Software Foundation; either version 2 | |
of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This code is hereby released by its author (Per Vognsen) into the public domain. | |
; It's mostly a proof of concept though it was surprisingly usable for how simple it was to code. | |
; If you want to use it as a starting point for a more polished package, go right ahead. | |
(require 'cl) | |
(defstruct wm-window buffer (point 0) (start 0) (hscroll 0) dedicated) | |
(defvar wm-windows) | |
(defvar wm-windows-alist) |