Skip to content

Instantly share code, notes, and snippets.

View evandrocoan's full-sized avatar
💤
Sleeping...

evandrocoan

💤
Sleeping...
View GitHub Profile
@evandrocoan
evandrocoan / last_commit.py
Last active June 27, 2019 13:30 — forked from bitrut/last_commit.py
Get timestamp of the last commit in git repository
#!/usr/bin/python
import subprocess
import shlex
import re
from optparse import OptionParser
def git_version(repository_path):
commad = shlex.split( "git log -1 --pretty=format:%ci" )
p = subprocess.Popen(commad, stdout=subprocess.PIPE, cwd=repository_path)
#!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2010 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
@evandrocoan
evandrocoan / Makefile
Created April 28, 2017 15:04 — forked from prwhite/Makefile
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing