Skip to content

Instantly share code, notes, and snippets.

View geekyorion's full-sized avatar
👽
Invading JavaScript

Shashank Sharma geekyorion

👽
Invading JavaScript
View GitHub Profile
@geekyorion
geekyorion / angular-from.json
Created May 23, 2022 07:30
Solved: digital envelope routines::unsupported
"scripts": {
"start": "ng serve",
"build": "ng build",
}
@geekyorion
geekyorion / im_pure_side_effect.js
Created May 17, 2022 07:14
Pure Function, Impure Function and Side Effect
// pure functions
const sum = (a, b) => {
return a + b;
}
// for the same value of a and b, the sum function is going to return the same output
// and solely depends on the props or we can say args to execute the function
sum(2, 4) // will always return 6
// side effect [Pure function can not have side effects]
@geekyorion
geekyorion / index.html
Created January 21, 2022 07:35
Table transpose (with rowspan to colspan)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>table change from row to col</title>
<style>
th, td {