Skip to content

Instantly share code, notes, and snippets.

View JudeMolloy's full-sized avatar
🟩
Collecting green squares.

Jude Molloy JudeMolloy

🟩
Collecting green squares.
View GitHub Profile
//
// KonectionsTableVC.swift
// KonectApp
//
// Created by Jude Molloy on 17/02/2018.
// Copyright © 2018 Jude Molloy. All rights reserved.
//
import UIKit
import Firebase
private mutating func performPendingBinaryOperation() {
if pbo != nil && accumulator != nil {
accumulator = pbo!.perform(with: accumulator!)
pbo = nil
}
}
private var pbo: PendingBinaryOperation?
private struct PendingBinaryOperation {
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)