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 | |
# shell wrapper to use gvimdiff and vimdiff as git differ. | |
# set up your ~/.gitconfig like this to use it: | |
#[diff] | |
# external = gitdiff.sh | |
# | |
#[pager] |
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 python3.7 | |
""" | |
Uses the import machinery to locate a module and report what it found, such as | |
where the source file is. | |
""" | |
import sys | |
import os | |
import importlib |
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/python2 | |
# Tell you which object, and what kind, is obtained by an import. This can also | |
# Will return errorlevel of 2 if object is not found. | |
from __future__ import print_function | |
import sys | |
import imp |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab | |
""" | |
Watch for new downloads in ~/Downloads (or another directory) and take actions. | |
The actions are determined by the file extension (determining the mime type). | |
""" | |
from __future__ import absolute_import | |
from __future__ import print_function |