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
### Keybase proof | |
I hereby claim: | |
* I am greggigon on github. | |
* I am greggigon (https://keybase.io/greggigon) on keybase. | |
* I have a public key ASDtjJuwVD6l31r9qFw2_FQGrH57QRLaZ9s73MNumFB8RAo | |
To claim this, I am signing this object: |
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
class JsonMap { | |
def toJSON(elements, depth = 0) { | |
def json = "" | |
depth.times { json += "\t" } | |
json += "{" | |
elements.each { key, value -> | |
json += "\"$key\":" | |
json += jsonValue(value, depth) | |
json += ", " | |
} |
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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { url 'http://repo.grails.org/grails/repo/' } | |
} | |
dependencies { | |
classpath "org.grails:grails-gradle-plugin:2.0.0-SNAPSHOT" | |
} |
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
import org.artifactory.repo.RepoPathFactory | |
def getDirectorySizeRecursively(def repoPath){ | |
def children = repositories.getChildren(repoPath) | |
if (children.size() == 0) return 0 | |
def total = 0 | |
children.each { item -> | |
if (item.folder) { | |
total += getDirectorySizeRecursively(item.repoPath) |
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
Name: python2.7 | |
Version: 2.7.7 | |
Release: 1%{?dist} | |
Summary: Python version 2.7.7 installation | |
Group: Development/Tools | |
License: GPL | |
URL: http://python.org | |
Source0: Python-2.7.7.tgz |