Skip to content

Instantly share code, notes, and snippets.

View aqibgatoo's full-sized avatar

Aqib Gatoo aqibgatoo

View GitHub Profile
(function (history, trackingId, options) {
const getParameterByName = (paramName) => {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
return val[1] || undefined;
}
}
@aqibgatoo
aqibgatoo / 1.cs
Created August 31, 2016 05:56 — forked from cuppster/1.cs
Promises for C# using Generics
/*
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Promises
@aqibgatoo
aqibgatoo / introrx.md
Created November 7, 2015 14:42 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@aqibgatoo
aqibgatoo / ApiUser.cs
Last active August 29, 2015 14:25 — forked from lnickers2004/ApiUser.cs
DATABASE: SEED SQL SERVER DATABASE FROM EXCEL SPREADSHEET.xls file example for entity framework codefirst and sqlserver. Also show repository pattern.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CountingKs.Data.Entities
{
public class ApiUser
{