Skip to content

Instantly share code, notes, and snippets.


Milan Aryal MilanAryal

View GitHub Profile
MilanAryal / hello-world.js
Created Jun 4, 2022
JavaScript "Hello, World!" program
View hello-world.js
/* For browser console */
console.log("Hello, World!");
/* For HTML document */
document.write("Hello, World!");
View width.scss
body {
width: 100vw; // cause a horizontal scroll bar, if height > 100vh
min-width: 320px;
max-width: 100%; // 100vw bugfix,
min-height: 100vh;
overflow-x: hidden; // 100vw bugfix,
View link.svg
View gulpfile.js
* Milan Aryal Gulpfile (
* Copyright 2020 Milan Aryal
* Licensed under MIT (
'use strict';
// Load plugin(s)
const { src, dest, series, parallel, watch } = require('gulp');
View package.json
"name": "",
"title": "Milan Aryal",
"url": "",
"description": "Build assets for",
"main": "gulpfile.js",
"scripts": {
"fresh": "rm -rf _site node_modules; npm install",
"build": "gulp",
"watch": "gulp watch",
MilanAryal /
Last active Aug 29, 2015
Example of how to embed a Gist on GitHub Pages using Jekyll.

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.

MilanAryal / schema-org-structured-data-markup-using-microdata.html
Last active Aug 3, 2021
An example of how to mark up a HTML5 webpage using the schemas and microdata.
View schema-org-structured-data-markup-using-microdata.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">

Keybase proof

I hereby claim:

  • I am MilanAryal on github.
  • I am milanaryal ( on keybase.
  • I have a public key whose fingerprint is 310B 1544 4945 F1A3 108E B0A7 B51C F15F F0E9 5927

To claim this, I am signing this object:

View Ignorable links
MilanAryal / reading-time.liquid
Last active Mar 23, 2020
Reading time on Jekyll
View reading-time.liquid
{% comment %}
prints friendly human readable reading time
divided_by doesn't round, so assuming 180 WPM we use:
<90 = 30 seconds
<270 = 1 minute
<450 = 2 minutes
<630 = 3 minutes
<810 = 4 minutes
<990 = 5 minutes