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
# Lists folders/directories with names matching $ListFolders array elements (currently: node_modules and .next), | |
# in a user specified folder/directory or current directory. It also provides a total count of the folders it lists. | |
# It ignores subfolders within the matching $ListFolders array elements (node_modules and .next) it finds. | |
# It also ignores folders present in $ExcludeFolders array (currently: .git). | |
# Usage: script-name [optional-path] | |
# | |
# The script uses Get-ChildItem calling it recursively. | |
# | |
# Adapted from Getting files and folders recursively in PowerShell…without using -Recurse!, | |
# https://cloudrun.co.uk/powershell/getting-files-and-folders-recursively-in-powershell-without-using-recurse/ |
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
# Copies contents of a folder/directory excluding node_modules and .next folders. | |
# It uses robocopy command to do the main work. | |
# Usage: script-name Source-Folder-Name | |
# Output folder name is generated by concatenating script defined suffix (currently: -wo-nmnx) to | |
# Source-Folder-Name. The script checks if file/folder of this generated name exists and if so | |
# gives a suitable error message and then aborts. | |
# The script also strips trailing backslash from Source-Folder-Name if present before generating | |
# output folder name. Note that Powershell adds trailing backslash by default to folder names when | |
# tab is used to step through files and folders being specified in a command on console. | |
# |
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
# Recursively outputs Get-ChildItem returned object for files and directories of current working directory | |
# OR user specified directory but excludes folders and their contents present in $ExcludeFolders variable | |
# in script | |
# | |
# Usage: script-name [optional-path] | next-cmd | |
# Usage Examples: | |
# Lists last modified time followed by full path for each folder & file in current directory | |
# excluding folders whose names are in $ExcludeFolders and such folders' contents | |
# script-name | ForEach-Object {"$($_.LastWriteTime) $($_.FullName)"} | |
# |
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
# Recursively lists full path of files and directories of current working directory OR user specified directory | |
# using write-output. | |
# | |
# Usage: script-name [optional-path] | |
# | |
# Adapted from Getting files and folders recursively in PowerShell…without using -Recurse!, | |
# https://cloudrun.co.uk/powershell/getting-files-and-folders-recursively-in-powershell-without-using-recurse/ | |
Param ($path = $pwd) |
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>H2 and link same line</title> | |
<style> | |
div { | |
background: #dbdbdb; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; |
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
<!-- Ref: https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#examples --> | |
<button onclick="delayedMessage();">Show a message after two seconds</button> | |
<button onclick="clearMessage();">Cancel message before it happens</button> | |
<div id="output"></div> | |
<script> | |
let timeoutID; | |
function setOutput(outputContent) { | |
console.log("setOutput() called"); |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body onload="afterLoad()"> | |
BB document | |
<script> |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Image Resize Test</title> | |
<link rel="stylesheet" href="styles.css" /> | |
</head> | |
<body> | |
<main> |
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>Blogger API Example: Get blog info. by URL</title> | |
</head> | |
<body> | |
<div id="content"></div> | |
<script> | |
function handleResponse(response) { | |
console.log(response); | |
if (!response.kind || response.kind != "blogger#blog") { |
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
const express = require("express"); | |
const cors = require("cors"); | |
const { createProxyMiddleware } = require("http-proxy-middleware"); | |
const app = express(); | |
app.use(cors()); | |
app.use( | |
"/", | |
createProxyMiddleware({ | |
target: "https://sathyasaiwithstudents.blogspot.com", |
NewerOlder