- Sets
- Relations and Functions
- Trigonometric Functions
- Principles of Mathematical Inductions
- Complex Numbers and Quadratic Equations
- Linear Inequalities
- Permutations and Combinations
- Binomial Theorem
- Sequence and Series
This file contains hidden or 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 { URL } = require('url'); | |
import fetch from 'node-fetch'; | |
export const shouldTransform = url => { | |
const { host, pathname } = new URL(url); | |
return ( | |
[ | |
'instagram.com', | |
'www.instagram.com', | |
'instagr.am', |
This file contains hidden or 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 math = require('mathjs'); | |
const LOOPS = 2.5 * 10 ** 7; | |
const xLim = 1; | |
const yLim = 1; | |
const r = Math.random; | |
let res = 0; | |
for (let i = 0; i < LOOPS; i++) { | |
const p1 = { x: r(), y: r() }; | |
const p2 = { x: r(), y: r() }; |
This file contains hidden or 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
class Point { | |
constructor(x = 0, y = 0) { | |
this.x = x; | |
this.y = y; | |
} | |
set coords({ x = 0, y = 0 }) { | |
if (!Number.isNaN(x)) this.x = x; | |
if (!Number.isNaN(y)) this.y = y; | |
} | |
get coords() { |
This file contains hidden or 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 math = require('mathjs'); | |
const LOOPS = 2.5 * 10 ** 7; | |
const xLim = 1; | |
const yLim = 1; | |
const r = Math.random; | |
let res = 0; | |
for (let i = 0; i < LOOPS; i++) { | |
const p1 = { x: r(), y: r() }; | |
const p2 = { x: r(), y: r() }; |
This file contains hidden or 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
(function intersect() { | |
const LOOPS = 2.5 * 10 ** 8; | |
let count = 0; | |
const { random: r, sqrt: s } = Math; | |
for (let i = 0; i < LOOPS; i++) { | |
let x = r(); | |
let y = r(); | |
const a = { x, y }; | |
x = r(); | |
y = r(); |
This file contains hidden or 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
[ | |
{ | |
name: "Bangalore Junction", | |
url: "https://www.openstreetmap.org/way/373566738" | |
}, | |
{ | |
name: "Phoenix Marketcity", | |
url: "https://www.openstreetmap.org/way/169256025" | |
}, | |
{ |
OlderNewer