Skip to content

Instantly share code, notes, and snippets.

View androidmads's full-sized avatar
🏠
Working from home

AndroidMad / Mushtaq M A androidmads

🏠
Working from home
View GitHub Profile
@androidmads
androidmads / ItemEntryPage.xaml
Created October 28, 2023 18:06
.NET MAUI - MVVM with MVVM toolkit sample
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiMVVM.Views.ItemEntryPage"
Title="Item Entry">
<StackLayout Margin="20"
Spacing="10">
<VerticalStackLayout>
<Label Text="Name:"
FontSize="16"/>
#Creates a Word-Object
$word = New-Object -ComObject Word.Application
$word.Visible = $false
$doc = $word.Documents.Open('%SelectedFile%')
#Creates the PDF file
$name = ($doc.FullName).replace('docx', 'pdf')
$name = $name.replace('doc', 'pdf')
$doc.SaveAs($name, 17)
$doc.Close()
$word.Quit()
@androidmads
androidmads / AppPaymentService.cs
Created May 31, 2022 20:32 — forked from TheAlphamerc/AppPaymentService.cs
Phonepay and Bhim app payment in xamarin form
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Util;
using Android.Views;
@androidmads
androidmads / gist:5a5910983ba03267879b973143a94394
Created December 29, 2019 05:51
Visual Studio 2019 Product Key
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
@androidmads
androidmads / AppDelegate.cs
Created March 25, 2018 10:24 — forked from dannycabrera/AppDelegate.cs
Get notified when user takes screenshot on Xamarin.iOS
using Foundation;
using UIKit;
namespace YourApp
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
NSObject _screenshotNotification = null;
@androidmads
androidmads / AppHelper.java
Created January 28, 2018 17:19 — forked from anggadarkprince/AppHelper.java
Upload file with Multipart Request Volley Android
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayOutputStream;
/**
* Sketch Project Studio
* Created by Angga on 12/04/2016 14.27.
*/
public class AppHelper {
@androidmads
androidmads / Main.java
Created September 29, 2017 02:12 — forked from rubenlagus/Main.java
Example of sending a SendMessage method using Telegram API with ReplyMarkupKeyboard
package org.telegram.example.SendMessage;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.IOException;
//...
// Self Signed Certificate
ServicePointManager.ServerCertificateValidationCallback =
delegate (object sender2,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return true;
};
@androidmads
androidmads / AndroidManifest.xml
Last active August 11, 2016 05:45
Snippet to avoid restarting activity when Screen Orientation changes on android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.androidmads.avoidrestart">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"