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 express = require('express'); | |
| const app = express(); | |
| var port = 3000 || process.env.PORT; | |
| app.listen(port, ()=>{ | |
| console.log('Server has been started! Live Port:', port); | |
| } |
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
| //people array will be needed | |
| function adultBw3040(peopleArray){ | |
| return peopleArray.filter(person => (person.age >= 30 ) && (person.age <= 40 )) | |
| } |
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
| void main() { | |
| var deck = new Deck(); | |
| // deck.shuffle(); //shuffle the list of cards inside deck | |
| print(deck.cardsWithSuit('Hearts')); | |
| deck.removeCard('Diamonds', 'Ace'); | |
| // print(deck); | |
| print(deck.deal(10)); | |
| print(deck); | |
| } |
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
| function setVideoPlayer($storedLink) { | |
| $videoSrc = ''; | |
| $videoLink = $storedLink; | |
| if (Str::contains($storedLink, ['youtube', 'youtu.be'])) { | |
| $videoSrc = 'YT'; | |
| if(Str::containsAll($storedLink, ['youtube', 'embed'])){ | |
| $videoLink = $storedLink; | |
| }else if(Str::contains($storedLink, ['youtube', 'watch'])){ | |
| $mainVal = Str::after($storedLink, '?v='); | |
| $videoLink = 'https://www.youtube.com/embed/'.$mainVal; |
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 Subscriptions = require("../models/subscriptions"); //Any Subscription Model | |
| const Users = require("../models/users"); // User Model | |
| const Plans = require("../models/plans"); // Plans Model | |
| const Payments = require('../models/payments') | |
| const { send: sendMail } = require('../services/smtp'); | |
| const { generatePassword, getExpiryDate } = require('../utils/helpers'); | |
| let thrivecart_secret = process.env.THRIVECART_SECRET; //Add your API Secret in .env file |
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 pabblyWebhook = async (req, res, next) => { | |
| if(req.body.event_name === 'test_webhook_url') return res.status(200).json({status: true, message: 'Tested data found'}) | |
| if(!req.body.data) return res.status(422).json({status: false, message: 'No data found'}) | |
| if(!req.body.event_type) return res.status(422).json({status: false, message: 'No event_type found'}) | |
| if(!req.body.data.id) return res.status(422).json({status: false, message: 'No id found'}) | |
| const subscription_id = req.body.data.id | |
| try { |
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 url = "https://payments.pabbly.com/api/v1"; | |
| const auth = { | |
| auth: { | |
| username: process.env.PABBLY_API_KEY, | |
| password: process.env.PABBLY_API_SECRET | |
| } | |
| } | |
| // VerifyToken and create subscription | |
| // Pabbly returns a hostedpage token after successful redirection, we can fetch that and use it for subscribing users. |
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 iconsString = ` | |
| fas fa-abacus, | |
| fas fa-acorn, | |
| fas fa-ad, | |
| fas fa-address-book, | |
| fas fa-address-card, | |
| fas fa-adjust, | |
| fas fa-air-conditioner, | |
| fas fa-air-freshener, | |
| fas fa-alarm-clock, |
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
| <?php | |
| namespace App\Http\Controllers\Tenant\Integrations; | |
| use App\Http\Controllers\Controller; | |
| use Carbon\Carbon; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Http; | |
| use function GuzzleHttp\json_decode; |
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
| src | |
| screens - all the main screens | |
| Home | |
| index.js | |
| style.scss/css |
OlderNewer