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
@iAmBipinPaul
iAmBipinPaul / cloudSettings
Last active May 28, 2018 09:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-28T01:41:24.580Z","extensionVersion":"v2.9.2"}
@iAmBipinPaul
iAmBipinPaul / 404.html
Last active July 13, 2018 02:40
Hosting Balzor applicaion on Github
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub Pages</title>
<script type="text/javascript">
var segmentCount = 0;
var l = window.location;
@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(...),
@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 / .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 / 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 / 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 / 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 / .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 / .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: