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
| -- Hyper Hotkey Modal | |
| modal = hs.hotkey.modal.new({}, nil) | |
| -- Hyper Modal Handling | |
| modalEntered = function() | |
| modal.triggered = false | |
| modal:enter() | |
| end |
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
| local config = os.getenv("HOME") .. "/.hammerspoon/init.lua" | |
| myWatcher = hs.pathwatcher.new(config, reloadConfig):start() | |
| hs.alert.show("Reloaded Hammerspoon.") |
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
| 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 |
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
| 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 |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <link rel="stylesheet" href="css/site.css"> | |
| </head> | |
| <body> | |
| <wrapper> | |
| <filler></filler> |
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 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) |
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
| def autocurry(value, funcs): | |
| for func in funcs: | |
| value = func(value) | |
| return value |
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
| RUN echo $' \n\ | |
| [url "[email protected]:"] \n\ | |
| insteadOf = https://github.com/' > /root/.gitconfig | |
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
| 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 |
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
| with (import <nixpkgs> {}); | |
| with builtins; | |
| stdenv.mkDerivation { | |
| name = "dot-emacs"; | |
| buildInputs = [ emacs ]; | |
| buildCommand = '' | |
| source ${stdenv}/setup | |
| mkdir -p $out |
OlderNewer