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
# coding: utf-8 | |
""" | |
Reliably determine the name of the host system in both CPython and | |
Jython. | |
""" | |
__author__ = "Caleb P. Burns" | |
__license__ = "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication" | |
__version__ = "1.0.2" |
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 Gist provides a natural sort comparison function for use with | |
`Array.prototype.sort()`. | |
Author: Caleb P. Burns | |
License: CC BY-SA 3.0 <http://creativecommons.org/licenses/by-sa/3.0/> | |
Version: 1.0.1 | |
Source: <https://gist.github.com/cpburnz/9975800> | |
Note: This is derived from the natural sort implementation by thg435 <http://stackoverflow.com/users/989121/thg435> | |
posted at <http://stackoverflow.com/a/15479354/369450>. |
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
# coding: utf-8 | |
""" | |
How to create time-zone aware date-time instances. | |
""" | |
__author__ = "Caleb P. Burns" | |
__license__ = "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication" | |
__version__ = "1.0.1" | |
import datetime |
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
#!/bin/sh | |
# | |
# From a bash shell, store new-line separated strings into a variable, and | |
# execute a command for each line. | |
# | |
# Author: Caleb P. Burns | |
# License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# Version: 1.0.0 | |
# Enter new-line separated strings into $LINES. |
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
#!/bin/bash | |
# | |
# From a bash shell, grep file names received from STDIN. The file names may | |
# contain spaces. | |
# | |
# Author: Caleb P. Burns | |
# License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# Version: 1.0.0 | |
# 1. Find the files to grep. |
The printer driver can be installed with the brother-brgenml1 AUR package.
OlderNewer