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 / HttpResponseCodeChecker.cs
Created June 7, 2019 19:13 — forked from sanjayuttam/HttpResponseCodeChecker.cs
Parallel HTTP Requestrrrrrrrrrrr...very simple and hacked together quickly. don't use in production systems.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
namespace SocketRequestor40
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Web;
using Microsoft.WindowsAzure.ServiceRuntime;
private CreditCardTransaction ProcessCustomerPaymentProfileTransaction(OrderContext context, transactionTypeEnum transactionType) {
//============================================
//New Transaction Method by Paul -- 02/28/2018
//============================================
var creditCardInformation = (CreditCardInformation) context.BillingInformation;
//Create or update the AuthNet Customer Profile and Payment Profile
EnsurePaymentProfile(context, creditCardInformation);
//Authenticate with Authorize.net
@Kasiviswanathan3876
Kasiviswanathan3876 / GooglePlayPurchaseService.cs
Created June 7, 2019 19:11 — forked from jonathanpeppers/GooglePlayPurchaseService.cs
Google Play purchase service - HandleActivityResult
private TaskCompletionSource<Order> _purchaseSource;
private IPublicKey _publicKey;
//NOTE: get this key from the Google Play dev console, under Development Tools | Services & APIs | Licensing & in-app billing
public string PublicKey { get; set; }
//Order details class, parsed from JSON
private sealed class Order
{
public string PackageName { get; set; }
@Kasiviswanathan3876
Kasiviswanathan3876 / fortune1000.csv
Created June 7, 2019 19:09 — forked from bousquet/fortune1000.csv
Fortune 1000 List - circa 2009
rank name domain
1 Exxon Mobil exxonmobil.com
2 Wal-Mart Stores corporate.walmart.com
3 Chevron chevron.com
4 ConocoPhillips conocophillips.com
5 General Electric ge.com
6 General Motors gm.com
7 Ford Motor ford.com
8 AT&T att.com
9 Hewlett-Packard hp.com
@Kasiviswanathan3876
Kasiviswanathan3876 / fortune500.txt
Created June 7, 2019 19:08 — forked from kurtroberts/fortune500.txt
Check a list of sites to see if they are Google Mobile friendly.
http://www.corporate.walmart.com/
http://www.exxonmobil.com/
http://www.chevron.com/
http://www.berkshirehathaway.com/
http://www.apple.com/
http://www.phillips66.com/
http://www.gm.com/
http://www.ford.com/
http://www.ge.com/
http://www.valero.com/
+-----------+-------------------+------------------------------+--------+-----------------+-----+-----------------------+-----------+----------+-----------+
| gatewayid | name | description | active | autobillcapable | cvv | credentials_gatewayid | preferred | sequence | group |
+-----------+-------------------+------------------------------+--------+-----------------+-----+-----------------------+-----------+----------+-----------+
| 1 | landmark | Landmark | 0 | 1 | 1 | 1 | 0 | 11 | NULL |
| 2 | verisign | PayPal Payflow Pro | 0 | 1 | 1 | 2 | 1 | 4 | paypal |
| 3 | authorize | Authorize.Net | 1 | 1 | 1 | 3 | 0 | 1 | authorize |
| 4 | paradata | Payment Processing Inc. | 0 |
@Kasiviswanathan3876
Kasiviswanathan3876 / countries.sql
Created November 16, 2018 12:35 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;