Skip to content

Instantly share code, notes, and snippets.

View debuging-life's full-sized avatar
🏠
‎ DON’T FORGET: Only way out is through.

Pardip Bhatti debuging-life

🏠
‎ DON’T FORGET: Only way out is through.
View GitHub Profile
type interface gpcoders {
name: string
}
var deferrdPrompt;
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/sw.js")
.then(function() {
console.log("service worker register");
})
.catch(function(error) {
console.log(error);
});
import 'package:flutter/material.dart';
import 'package:scoped_model/scoped_model.dart';
import '../../scoped-models/MainModel.dart';
import 'signup-steps/profile-information.dart';
import 'Login.dart';
import '../../models/User.dart';
class Register extends StatefulWidget {
@override
Widget _buildProfileLogo() {
return Container(
decoration: BoxDecoration(
color: Color(0xFF33b667).withOpacity(0.05),
shape: BoxShape.circle,
),
height: 240.0,
width: 240.0,
child: Center(
child: Container(
@debuging-life
debuging-life / gpCountriesPhoneCode.php
Created February 19, 2017 20:27
All counties phone code
<select>
<option value="93">Afghanistan</option>
<option value="355">Albania</option>
<option value="213">Algeria</option>
<option value="1">American Samoa</option>
<option value="376">Andorra</option>
<option value="244">Angola</option>
<option value="1">Anguilla</option>
<option value="1">Antigua and Barbuda</option>
<option value="54">Argentina</option>
@debuging-life
debuging-life / gpCountryCode.php
Created February 19, 2017 20:19
All Countries name with code
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@debuging-life
debuging-life / swift-basics.swift
Created December 14, 2016 19:33
lec-1-proworms
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
var score = "hello gugu"
score = "i lov gugu"
@debuging-life
debuging-life / costom-form-component.html
Created June 26, 2016 19:51
custom-form-validations
<div class="jumbotron">
<h1>{{ data.title }}</h1>
<p>{{ data.description }}</p>
<form [ngFormModel]="gpForm">
<div class="form-group">
<labe for="firstName" id="firstName">First Name</labe>
<input type="text"
class="form-control"
@debuging-life
debuging-life / angular-form.component.html
Created June 26, 2016 17:19
angular-form-validations
<div class="jumbotron">
<h1>{{ data.title }}</h1>
<p>{{ data.description }}</p>
<form #gpForm="ngForm">
<div class="form-group">
<labe for="firstName" id="firstName">First Name</labe>
<input type="text"
class="form-control"
import { Component } from '@angular/core';
@Component({
selector: "bs-panel",
template: `
<div class="jumbotron">
<h1>{{ title.title }}</h1>
<p>{{ title.description }}</p>