Skip to content

Instantly share code, notes, and snippets.

View iAmBipinPaul's full-sized avatar
🏠
Working from home 🇳🇵

Bipin Paul iAmBipinPaul

🏠
Working from home 🇳🇵
View GitHub Profile
CountryCode ZipCode PlaceName AdminName1 AdminCode1 AdminName2 AdminCode2 AdminName3 AdminCode3 Latitude Longitude Accuracy
US 501 Holtsville New York NY Suffolk 103 NULL NULL 40.8154 -73.0451 4
US 544 Holtsville New York NY Suffolk 103 NULL NULL 40.8154 -73.0451 4
US 6390 Fishers Island New York NY Suffolk 103 NULL NULL 41.2639 -72.0178 4
US 10001 New York New York NY New York 61 NULL NULL 40.7484 -73.9967 4
US 10002 New York New York NY New York 61 NULL NULL 40.7152 -73.9877 4
US 10003 New York New York NY New York 61 NULL NULL 40.7313 -73.9892 4
US 10004 New York New York NY New York 61 NULL NULL 40.7143 -74.006 4
US 10005 New York New York NY New York 61 NULL NULL 40.7056 -74.0083 4
US 10006 New York New York NY New York 61 NULL NULL 40.7085 -74.0135 4
@iAmBipinPaul
iAmBipinPaul / HttpIntercepter.cs
Last active February 16, 2020 02:40
Refresh token in Blazor
public class HttpIntercepter : DelegatingHandler
{
private readonly StoreToken _storeToken;
public HttpIntercepter(StoreToken storeToken)
{
_storeToken = storeToken;
}
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
@iAmBipinPaul
iAmBipinPaul / .travis.yml
Last active September 12, 2019 16:42
build .net core preview apps on Travis CI (It will always download the latest preview release)
dist: xenial
addons:
snaps:
- name: dotnet-sdk
classic: true
channel: latest/beta
sudo: required
language: csharp
mono: none
script:
@iAmBipinPaul
iAmBipinPaul / .gitlab-ci.yml
Last active July 26, 2018 18:12
GitLab build file
image: microsoft/dotnet:2.1.302-sdk
before_script:
- dotnet restore
pages:
stage: deploy
script:
- mkdir public
- dotnet publish -c Release -o output
@iAmBipinPaul
iAmBipinPaul / index.html
Created July 26, 2018 17:52
Blazor publish final index.html file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
<title>Blazor.CICD</title>
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
</head>
@iAmBipinPaul
iAmBipinPaul / script_for_index.html
Created July 26, 2018 17:50
Blazor publish Script to add in index.html
<!-- Start Single Page Apps for GitHub/GitLab Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub/GitLab Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
@iAmBipinPaul
iAmBipinPaul / 404.html
Last active July 26, 2018 17:56
Blazor Publish on GitLab
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub/GitLab Pages</title>
<script type="text/javascript">
// Single Page Apps for GitHub/GitLab Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
@iAmBipinPaul
iAmBipinPaul / .travis.yml
Created July 13, 2018 02:53
file for travis ci
language: csharp
solution: bipinpaul.com.np.sln
dotnet: 2.1.301
script:
- dotnet restore
- dotnet publish -c Release -o output
- cd bipinpaul.com.np/output/bipinpaul.com.np/dist
- ls -LR
deploy:
provider: pages
@iAmBipinPaul
iAmBipinPaul / script to be placed in index.html
Created July 13, 2018 02:43
Hosting Balzor applicaion on Github
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
@iAmBipinPaul
iAmBipinPaul / Index.html
Created July 12, 2018 13:42
Add POC of Google Map, add new unit tests
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),