Skip to content

Instantly share code, notes, and snippets.

View ChrisAcrobat's full-sized avatar
👨‍💻

Christoffer Olofsson ChrisAcrobat

👨‍💻
View GitHub Profile
sd | Updating conda env: ldm ...
sd | Collecting package metadata (repodata.json): ...working... done
sd | Solving environment: ...working... done
sd | 
sd | 
sd | ==> WARNING: A newer version of conda exists. <==
sd |   current version: 4.12.0
sd |   latest version: 4.14.0
sd | 
sd | Please update conda by running
@ChrisAcrobat
ChrisAcrobat / build.gradle
Last active April 13, 2020 21:49
Git and date based version name.
def checkIfTracked = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'status', '--porcelain'
standardOutput = stdout
}
return stdout.toString().trim().equals("") ? "" : "-MODIFIED"
}
def getGitCommitDate = { ->