Skip to content

Instantly share code, notes, and snippets.

View meetAhmed's full-sized avatar
🌍
Working from home

Ahmed Ali meetAhmed

🌍
Working from home
View GitHub Profile
@meetAhmed
meetAhmed / MScreenRecorder.swift
Created September 19, 2024 17:50
MScreenRecorder is a class that manages screen recording using Apple ReplayKit.
//
// MScreenRecorder.swift
// MoviesApp
//
// Created by Ahmed Ali on 19/09/2024.
//
import ReplayKit
enum MScreenRecorderError: Error {
//
// Util.swift
//
//
// Created by Ahmed Ali on 22/08/2023.
//
import Foundation
/*
@meetAhmed
meetAhmed / app.js
Last active August 31, 2019 17:22
Demo
var command;
const fs = require('fs');
function some(){
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
var ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
command = ffmpeg();
createVideo(command);
@meetAhmed
meetAhmed / email.js
Created August 17, 2019 07:58
Code for sending the verification emails in node js using the nodemailer and uuid library. This script exports the sendVerificationEmail method that takes two parameters email address and callback for the response to the calling agent.
var nodemailer = require('nodemailer');
const uuid = require('uuid');
var transporter = nodemailer.createTransport({
service : 'gmail',
auth : {
user : '',
pass : ''
}
});