Skip to content

Instantly share code, notes, and snippets.

View brucewlee's full-sized avatar

Bruce W. Lee brucewlee

View GitHub Profile
@nloadholtes
nloadholtes / setup.py
Created July 15, 2017 20:25
An example of using the git hash/tag as a version number
from setuptools import setup, find_packages
import subprocess
def _get_version_hash():
"""Talk to git and find out the tag/hash of our latest commit"""
try:
p = subprocess.Popen(["git", "describe",
"--tags", "--dirty", "--always"],
stdout=subprocess.PIPE)
except EnvironmentError:
@jamesstacyjones
jamesstacyjones / gist:1a77649f24a81c7d7294
Created May 1, 2015 12:54
Remove Line Breaks from a Cell in Google Sheets
Copy this Regular Expression into Find / Replace:
\r\n|\n|\r
Then click 'Replace All' and bye bye line breaks.
[note] make sure there is no white space before or after the expression