Skip to content

Instantly share code, notes, and snippets.

-- Hyper Hotkey Modal
modal = hs.hotkey.modal.new({}, nil)
-- Hyper Modal Handling
modalEntered = function()
modal.triggered = false
modal:enter()
end
local config = os.getenv("HOME") .. "/.hammerspoon/init.lua"
myWatcher = hs.pathwatcher.new(config, reloadConfig):start()
hs.alert.show("Reloaded Hammerspoon.")
FROM nginx
RUN apt-get update && apt-get install -y python python-dev python-pip git-core
RUN pip install nltk
RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('punkt')"
COPY ./blot/requirements.txt /blot/requirements.txt
RUN pip install -r /blot/requirements.txt
diff fabfile.py fabfile2.py Wed Aug 30 17:05:32 2017
68,74d67
< # load image content
< images={
< 'loader': BasicLoader('content', extensions=['png', 'jpg', 'gif', 'bmp']),
< 'processors': [
< PathMetadata()
< ],
< },
123,125d115
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/site.css">
</head>
<body>
<wrapper>
<filler></filler>
import blot
from blot.utils import generate_cloud
from blot.loaders import BasicLoader, SassLoader
from blot.writers import ListWriter, IndexWriter, StaticWriter, PaginatedWriter
from blot.processors import (
PathMetadata, YAMLMetadata,
AutoSummary, Titler, Slugifier, Humanizer,
Tags, Categories, CategoryTags, Series, SeriesTags,
MarkdownParser, JinjaRenderer, CssMinify)
def autocurry(value, funcs):
for func in funcs:
value = func(value)
return value
RUN echo $' \n\
[url "[email protected]:"] \n\
insteadOf = https://github.com/' > /root/.gitconfig
with (import <nixpkgs> {}).lib;
with builtins;
let
items = readDir ./.;
dirs = filterAttrs (item: type: type == "directory") items;
paths = map (dir: toPath ./. + "/${dir}") (attrNames dirs);
modules = filter (path: pathExists (toPath "${path}/default.nix")) paths;
defaults = map (module: import module) modules;
in
with (import <nixpkgs> {});
with builtins;
stdenv.mkDerivation {
name = "dot-emacs";
buildInputs = [ emacs ];
buildCommand = ''
source ${stdenv}/setup
mkdir -p $out