Skip to content

Instantly share code, notes, and snippets.

@toshihirock
toshihirock / slideshare.groovy
Last active August 29, 2015 14:11
SlideShareから特定ユーザーのスライドのDownloadUrlを取得する
// Groovy Version: 2.3.6 JVM: 1.7.0_60 Vendor: Oracle Corporation OS: Mac OS X
@Grab(group='commons-codec', module='commons-codec', version='1.10')
url = 'https://www.slideshare.net/api/2/get_slideshows_by_user'
apiKey = 'hoge'
sharedSecret = 'fuga'
userName = 'AmazonWebServicesJapan'
//unix time
ts = System.currentTimeMillis() / 1000L
@toshihirock
toshihirock / JenkinsGradle.gradle
Last active August 29, 2015 14:10
JenkinsのコミットメッセージをGradleで取得する
// something
// jenkins
import groovy.json.*
ext {
jenkinsUrl = 'http://localhost:8080'
buildNumber = System.getenv("BUILD_NUMBER");
jobName = System.getenv("JOB_NAME");
println "build number is ${buildNumber}"