This file contains 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
;;; xresources-theme.el --- Use your .Xresources as your emacs theme | |
;; Copyright (C) 2014-2014 Marten Lienen <marten.lienen@gmail.com> | |
;; Author: Marten Lienen <marten.lienen@gmail.com> | |
;; Keywords: xresources, theme | |
;; Version: 0.2.0 | |
;; This file is not part of GNU Emacs. |
This file contains 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
#[macro_use] | |
extern crate nom; | |
use nom::*; | |
named! { | |
parse_str<&str, &str>, | |
delimited!( | |
char!('"'), | |
escaped!( |
This file contains 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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Layer configuration: | |
This function should only modify configuration layer settings." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
This file contains 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
;;; xresources-theme.el --- Use your .Xresources as your emacs theme | |
;; Copyright (C) 2014-2014 Marten Lienen <marten.lienen@gmail.com> | |
;; Author: Marten Lienen <marten.lienen@gmail.com> | |
;; Keywords: xresources, theme | |
;; Version: 0.2.0 | |
;; This file is not part of GNU Emacs. |
This file contains 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
[package] | |
name = "nix-parser" | |
version = "0.1.0" | |
authors = ["Tyler Slabinski <tslabinski@slabity.net>"] | |
[dependencies.rnix] | |
git = "https://gitlab.com/jD91mZM2/rnix.git" | |
[dependencies] | |
arenatree = "0.1.0" |
This file contains 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> { }; | |
stdenv.mkDerivation rec { | |
name = "Rust"; | |
buildInputs = [ | |
rustChannels.nightly.rust | |
vulkan-loader | |
vulkan-headers | |
cmake |
This file contains 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
let | |
pkgs = import <nixpkgs> {}; | |
in with pkgs; stdenv.mkDerivation rec { | |
name = "vulkan-env"; | |
nativeBuildInputs = [ | |
cmake | |
pkgconfig | |
]; |
This file contains 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/env python | |
import datetime as dt | |
import holiday | |
import gzip | |
# Mapping between files and their archived locations | |
# Must be formatted with a datestamp in the form of `YYmmdd` | |
ARCHIVE_CONF_FMTS = [ | |
("flow.conf", "/archive/{0}/eod/flow-eod_{0}.conf.gz"), |
This file contains 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/env python | |
import datetime | |
import difflib | |
import gzip | |
# Mapping between files and their archived locations | |
# Must be formatted with a datestamp in the form of `YYmmdd` | |
ARCHIVE_CONF_FMTS = [ | |
("flow.conf", "/archive/{0}/eod/flow-eod_{0}.conf.gz"), |
This file contains 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
fn main() { | |
print_message("Hello world"); | |
} | |
fn print_message(msg: &str) { | |
println!("{}", msg); | |
} |