Skip to content

Instantly share code, notes, and snippets.

View Slabity's full-sized avatar

Slabity Slabity

View GitHub Profile
;;; 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.
#[macro_use]
extern crate nom;
use nom::*;
named! {
parse_str<&str, &str>,
delimited!(
char!('"'),
escaped!(
;; -*- 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'
;;; 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.
[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"
with import <nixpkgs> { };
stdenv.mkDerivation rec {
name = "Rust";
buildInputs = [
rustChannels.nightly.rust
vulkan-loader
vulkan-headers
cmake
let
pkgs = import <nixpkgs> {};
in with pkgs; stdenv.mkDerivation rec {
name = "vulkan-env";
nativeBuildInputs = [
cmake
pkgconfig
];
#!/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"),
#! /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"),
fn main() {
print_message("Hello world");
}
fn print_message(msg: &str) {
println!("{}", msg);
}