View keybase.io
### 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: |
View python.2.7.7.spec
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 |
View gist:5949894
buildscript { | |
repositories { | |
mavenCentral() | |
maven { url 'http://repo.grails.org/grails/repo/' } | |
} | |
dependencies { | |
classpath "org.grails:grails-gradle-plugin:2.0.0-SNAPSHOT" | |
} |
View RepositorySize.groovy
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) |
View JsonMap.groovy
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 += ", " | |
} |