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
| FROM python:3 | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN mkdir /code | |
| WORKDIR /code | |
| COPY requirements.txt /code/ | |
| RUN pip install --upgrade pip setuptools wheel | |
| RUN pip install -r requirements.txt | |
| COPY . /code/ |
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
| // Connecting using laravel echo | |
| Echo = new Echo({ | |
| broadcaster: "pusher", | |
| key: "74bf7b405754182ff555", | |
| cluster: "mt1", | |
| namespace: "", | |
| encrypted: true, | |
| authEndpoint: "https://api.africanobservations.com/broadcasting/auth", | |
| auth: { | |
| headers: { |
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
| FROM python:3 | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN mkdir /code | |
| WORKDIR /code | |
| COPY requirements.txt /code/ | |
| RUN pip install -r requirements.txt | |
| COPY . /code/ |
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
| version: '3.2' | |
| services: | |
| worker: | |
| build: . | |
| restart: "no" | |
| command: bash -c "cd fiscoins && celery -A fiscoins worker --loglevel=info" | |
| volumes: | |
| - .:/code |
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
| <template> | |
| <div> | |
| <div :class="$vuetify.theme.isDark ? 'bg-black' : 'bg-white'" v-if="!not_allowed" class="col-md-10 mx-auto col-sm-12 card"> | |
| <v-overlay | |
| :value="loading" | |
| :dark="false" | |
| > | |
| <v-progress-circular |
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
| import 'dart:convert'; | |
| import 'dart:io'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:image_picker/image_picker.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatefulWidget { |
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
| const axios = require("axios"); | |
| const Event = require("../models/Event"); | |
| const Payment = require("../models/Payment"); | |
| var paystack = require("../utils/paystackCall.js"); | |
| // Initialize payment | |
| exports.initialize_payment = (req, res) => { |
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
| const mongoose = require('mongoose'); | |
| const PaymentSchema = mongoose.Schema({ | |
| userKey: { | |
| type: String, | |
| required: true | |
| }, | |
| eventKey: { |
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
| const axios = require('axios') | |
| const Payment = require('../models/Payment'); | |
| module.exports = | |
| { | |
| payInitialize : function (req, res, email, localId) { | |
| axios | |
| .post( | |
| "https://api.paystack.co/transaction/initialize", | |
| { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Socket Test</title> | |
| <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" | |
| integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" /> |
NewerOlder