Skip to content

Instantly share code, notes, and snippets.

View Kasiviswanathan3876's full-sized avatar
💭
I may be slow to respond.

KasiVisu Kasiviswanathan3876

💭
I may be slow to respond.
View GitHub Profile
@Kasiviswanathan3876
Kasiviswanathan3876 / 0.useful.md
Created November 18, 2022 13:54 — forked from felipemoraes/0.useful.md
Machine Learning Interview Questions
@Kasiviswanathan3876
Kasiviswanathan3876 / Pkcs7.cs
Created July 17, 2019 19:43 — forked from bitbeans/Pkcs7.cs
PKCS7 padding in C#
/// <summary>
/// Removes the Pkcs7 padding of an array.
/// </summary>
/// <param name="paddedByteArray">The padded array.</param>
/// <returns>The unpadded array.</returns>
/// <exception cref="OverflowException"></exception>
/// <exception cref="ArgumentOutOfRangeException"></exception>
/// <exception cref="ArgumentException"></exception>
/// <exception cref="ArgumentNullException"></exception>
public static byte[] RemovePkcs7Padding(byte[] paddedByteArray)
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using Microsoft.Exchange.WebServices.Data;
using System.Linq;
using System.Net;
using System.Security;
using System.Text;
@Kasiviswanathan3876
Kasiviswanathan3876 / AppPaymentService.cs
Created June 7, 2019 19:18 — 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;
@Kasiviswanathan3876
Kasiviswanathan3876 / DownloadHelper.cs
Created June 7, 2019 19:15 — forked from StephenHodgson/DownloadHelper.cs
Unity Image Downloader example
using System;
using System.Collections;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
public class DownloadHelper : MonoBehaviour
{
private string userName = string.Empty;
private string password = string.Empty;
public class GooglePlayPurchaseService : PurchaseService
{
private BillingConnection _connection;
private sealed class Product
{
public string Title { get; set; }
public string Price { get; set; }
public string Type { get; set; }
public string Description { get; set; }
@Kasiviswanathan3876
Kasiviswanathan3876 / BillingConstants.cs
Created June 7, 2019 19:15 — forked from jonathanpeppers/BillingConstants.cs
BillingConstants for Google Play
public class BillingConstants
{
public const int ApiVersion = 3;
// Billing response codes
public const int ResultOk = 0;
public const int ResultUserCancelled = 1;
public const int ResultBillingUnavailable = 3;
public const int ResultItemUnavailable = 4;
public const int ResultDeveloperError = 5;
// CSVを取得するサンプルコード
var url = "https://script.google.com/macros/s/******************/exec";
// 結果のCSV格納変数
var csv = "";
using (var request = UnityWebRequest.Get(url))
{
Debug.Log($"SEND!!! : {url}");
yield return request.SendWebRequest();
// 通信エラーチェック
using System;
using System.ComponentModel;
using System.IO;
using System.Net;
using System.Text;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
namespace MyCompany.Workflow.Messaging.Activities
{
@Kasiviswanathan3876
Kasiviswanathan3876 / PaymentController.cs
Created June 7, 2019 19:14 — forked from samnaseri/PaymentController.cs
Payment Controller for MIGS gateway using Asp.Net MVC4
// WARNING : THIS CODE IS AS IS. NOTHING IS GUARANTEED.
// PLEASE NOTE THAT THIS IS ONLY A TEMPLATE, YOU NEED TO WORK ON IT TO MAKE IT SUITABLE FOR YOUR NEEDS
// AT LEAST YOU NEED TO REPLACE THE VALUE FOR HASH SECRET VARIABLES BY VALUES YOU RECEIVED FROM YOUR BANK
// For more information go to : http://samondotnet.blogspot.com/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;