This file contains hidden or 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
var Image = require("parse-image"); | |
Parse.Cloud.beforeSave("_User", function(request, response) { | |
var user = request.object; | |
if (!user.get("profilePhoto")) { | |
response.error("Users must have a profile photo."); | |
return; | |
} | |
if (!user.dirty("profilePhoto")) { |
This file contains hidden or 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
// | |
// JHGradientView.swift | |
// Gradient View editable in Interface Builder | |
// | |
// Created by JHays on 2/20/15. | |
// Copyright (c) 2015 Orbosphere. All rights reserved. | |
// | |
import Foundation | |
import UIKit |