Skip to content

Instantly share code, notes, and snippets.

View aqibgatoo's full-sized avatar

Aqib Gatoo aqibgatoo

View GitHub Profile
@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
{
@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 / 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 / privaypolicy.md
Created September 28, 2018 03:14
Privacy Policy for JK Holiday Calendar

Privacy Policy

Aqib Gatoo built the JK Holiday Calendar app as an Ad Supported app. This SERVICE is provided by Aqib Gatoo at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at JK Holiday Calendar unless otherwise defined in this Privacy Policy.

(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;
}
}
// main.dart
void main() {
runApp(
BlocProvider<HomeBloc>(
baloc: HomeBloc(),
child: MyApp(),
),
);
}
//app.dart
return Scaffold(
body: Stack(
children: <Widget>[
Align(
alignment: Alignment(0.4, -0.6),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 40.0),
child: TextField(
autofocus: true,
onChanged: (str) {},
child: DropdownButtonHideUnderline(
child: StreamBuilder<List<Country>>(
initialData: [],
stream: bloc.countries,
builder: (context, countriesSnapshot) {
return StreamBuilder<Country>(
stream: bloc.country,
builder: (context, snapshot) {
return countriesSnapshot.hasData ? DropdownButton<Country>(
onChanged: bloc.setCountry,
@aqibgatoo
aqibgatoo / linkset.json
Created April 22, 2021 11:16
Drupal Menu Api Response
{
"linkset": [
{
"anchor": "/system/menu/main/linkset",
"item": [
{
"href": "/",
"title": "Home",
"drupal-menu-hierarchy": [
".000"
@aqibgatoo
aqibgatoo / package.yml
Last active April 26, 2021 15:09
Yaml File
name: example
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.