Skip to content

Instantly share code, notes, and snippets.

View ajordens's full-sized avatar

Adam Jordens ajordens

View GitHub Profile
@ttomsu
ttomsu / JsonSetterSpec.groovy
Last active January 12, 2016 20:30
Here's an example of using @JsonSetter annotations as a "preprocessor"-like way to move clients using old API while still being able to update Orca's internal model.
/*
* Copyright 2016 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ajordens
ajordens / iTunesPurchaseHistoryExport.groovy
Created September 5, 2010 21:36
Groovy script that exports your iTunes Mobile Application downloads to a csv.
import groovy.io.FileType
import java.util.zip.ZipEntry
import au.com.bytecode.opencsv.CSVWriter
import java.util.zip.ZipFile
@Grapes([
@Grab(group = 'net.sf.opencsv', module = 'opencsv', version = '2.1')])
/**
* Exports your 'Mobile Application' contents to a .csv