Skip to content

Instantly share code, notes, and snippets.

Jamie Chapman jamiechapman

Block or report user

Report or block jamiechapman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main-hack.js
Parse.Cloud.afterSave("Upload", function(req) {
if(req.user) {
if(req.object.has('type') && req.object.has('file')) {
var type = req.object.get('type');
if(type === 'avatar') {
console.log("Saving file..." +;
jamiechapman /
Last active Mar 14, 2019
A Serializable ParseObject Proxy
// By Jamie Chapman, @chappers57
// License: open, do as you wish, just don't blame me if stuff breaks ;-)
public class ParseProxyObject implements Serializable {
private static final long serialVersionUID = 1L;
private HashMap<String, Object> values = new HashMap<String, Object>();
public HashMap<String, Object> getValues() {
return values;
You can’t perform that action at this time.