This file contains 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
// | |
// KonectionsTableVC.swift | |
// KonectApp | |
// | |
// Created by Jude Molloy on 17/02/2018. | |
// Copyright © 2018 Jude Molloy. All rights reserved. | |
// | |
import UIKit | |
import Firebase |
This file contains 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
private mutating func performPendingBinaryOperation() { | |
if pbo != nil && accumulator != nil { | |
accumulator = pbo!.perform(with: accumulator!) | |
pbo = nil | |
} | |
} | |
private var pbo: PendingBinaryOperation? | |
private struct PendingBinaryOperation { |
This file contains 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
def get(self, request, *args, **kwargs): | |
if self.request.GET['hub.verify_token'] == '7221896199': | |
return HttpResponse(self.request.GET['hub.challenge']) | |
else: | |
return HttpResponse('Error, invalid token') | |
@method_decorator(csrf_exempt) | |
def dispatch(self, request, *args, **kwargs): | |
return generic.View.dispatch(self, request, *args, **kwargs) |