This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Madhav Paudel</title> | |
<link rel="stylesheet" type="text/css" href="css/master.css"> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="prof-box"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
Balance Transfer | |
//Author Madhav Paudel | |
*******************************************************************************/ | |
#include <iostream> | |
#include<iomanip> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JavaScript</title> | |
</head> | |
<body> | |
<script> | |
let d = document; | |
// d.querySelector("body").style.backgroundColor = "#f7f7f7"; | |
// d.querySelector("body").style.backgroundImage = "url('images/background.jpg')"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JS Calculator</title> | |
</head> | |
<body> | |
<div id="calc-box"> | |
<h3 align="center">Calculator</h3> | |
<hr> | |
<table border="0" width="400"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="number" id="days"> <!-- the td and tr are added equal to this value --> | |
<input type="text" onfocus="addItineraryDays()"> <!-- function calling onfocus this input --> | |
<table class="table table-striped table-bordered"> | |
<thead> | |
<tr> | |
<th>Day</th> | |
<th>Itineraries</th> | |
</tr> | |
</thead> | |
<tbody id="myTable"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Dont forget to keep your webhook url in ENV["webhook_url"] --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" | |
crossorigin="anonymous"></script> | |
<style> | |
input[type=text], select { | |
width: 100%; | |
padding: 12px 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = (event, context, callback) => { | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
if(request.uri == '/') { | |
if (typeof headers['accept-language'] !== 'undefined') { | |
const supportedLanguages = headers['accept-language'][0].value; | |
console.log('Supported languages:', supportedLanguages); | |
if(supportedLanguages.startsWith('en')){ | |
callback(null, redirect('/en/index.html')); | |
} else if(supportedLanguages.startsWith('ja')){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'pass'; |
OlderNewer