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
/* The top-level package collection of nixpkgs. | |
* It is sorted by categories corresponding to the folder names | |
* in the /pkgs folder. Inside the categories packages are roughly | |
* sorted by alphabet, but strict sorting has been long lost due | |
* to merges. Please use the full-text search of your editor. ;) | |
* Hint: ### starts category names. | |
*/ | |
{ lib, nixpkgsFun, noSysDirs, config}: | |
self: pkgs: |
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
** Change "yes or no" to "y or n" | |
Lazy people like me never want to type "yes" when "y" will suffice. | |
#+BEGIN_SRC emacs-lisp | |
(fset 'yes-or-no-p 'y-or-n-p) | |
#+END_SRC |
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
;;; daylight.el -- Actively change themes based on the time of day | |
;; Copyright (C) 2013 Daniel Friedman | |
;; Author: Daniel Friedman | |
;; URL: https://github.com/daf-/emacs-daylight | |
;; Keywords: theming, convenience | |
;; Version: 0.1 | |
;; 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
(defun daylight-get-theme (hour) | |
"Return the daylight theme for HOUR." | |
(cond ((and (>= hour daylight-morning-hour) (< hour daylight-afternoon-hour)) | |
daylight-morning-theme) | |
((and (>= hour daylight-afternoon-hour) (< hour daylight-evening-hour)) | |
daylight-afternoon-theme) | |
((and (or (>= hour daylight-evening-hour) ( < hour daylight-morning-hour)) | |
(or (<= hour daylight-late-hour) (> hour daylight-morning-hour))) | |
daylight-evening-theme) |
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 | |
# -*- Mode: Python -*- | |
# vi:si:et:sw=4:sts=4:ts=4 | |
# sinkelement.py | |
# (c) 2005 Edward Hervey <[email protected]> | |
# (c) 2007 Jan Schmidt <[email protected]> | |
# Licensed under LGPL | |
# | |
# Small test application to show how to write a sink element |
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
this is just a usage test of gist-snippets | |
python: | |
def hello_world: | |
print "hello world" |