Skip to content

Instantly share code, notes, and snippets.

View deya-eldeen's full-sized avatar

Deya Eldeen Elkhawaldeh deya-eldeen

View GitHub Profile
@vinovator
vinovator / UdacityDownload.py
Last active July 28, 2023 05:03
Python program to download course content for multiple Udacity courses neatly arranged within a folder structure
# UdacityDownload.py
# Python 2.7.6
"""
Python script to download course content from udacity courses
- Creates folders as per course names
- Downloads all the zip files
- Extract content from zip file
- Finally delete the zip file
Multiple course content can be downloaded from list
@MohammadaliMirhamed
MohammadaliMirhamed / PhpFireBaseNotificationSample.php
Last active December 28, 2024 22:56
This repository showcases a simple and effective script to send push notifications to Android devices using Firebase Cloud Messaging (FCM). Designed for developers, the code provides a quick setup for integrating FCM notifications with minimal configuration.
<?php
#API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = $_GET['id'];
#prep the bundle
$msg = array
(
'body' => 'Body Of Notification',
@patriknyblad
patriknyblad / xcrun_simctl_cheatsheet.md
Last active August 4, 2025 06:31
iOS Simulator Terminal Commands `$ xcrun simctl`

Managing iOS Simulators

List all simulators created

$ xcrun simctl list --json

Delete old and unavailable simulators

$ xcrun simctl delete unavailable
@abhi21git
abhi21git / ExtensionURLRequest.swift
Last active April 8, 2025 10:51
Swift cURL Printer
//
// ExtensionURLRequest.swift
//
// Created by Abhishek Maurya on 16/07/20.
// Copyright © 2020. All rights reserved.
//
import Foundation
extension URLRequest {
@mehmetfarhan
mehmetfarhan / CaptureList.swift
Created September 25, 2020 11:18
Capture List
import UIKit
final class Increment {
// MARK: - Properties
private var number: Int = 0
// MARK: - This will cause memory leak
// lazy var incrementNumber: (Int) -> Void = { value in
import Foundation
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
#if DEBUG
let output = items.map { "\n⚠️ YourAppName \($0)" }.joined(separator: separator)
Swift.print(output, terminator: terminator)
#else
if(Environment.allowPrint == "1"){
let output = items.map { "\n⚠️ YourAppName \($0)" }.joined(separator: separator)
Swift.print(output, terminator: terminator)