Skip to content

Instantly share code, notes, and snippets.

View amrutsabale's full-sized avatar
🖥️

Amrut Sabale amrutsabale

🖥️
  • India
View GitHub Profile
@amrutsabale
amrutsabale / dual-y-axes-line-chart-d3.html
Created February 11, 2022 08:22 — forked from itsprdp/dual-y-axes-line-chart-d3.html
Dual y axes line chart using d3.js
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
path {
fill: none;
}
.axis {
@amrutsabale
amrutsabale / 1.js
Created February 25, 2021 04:09 — forked from getify/1.js
Converting English number sentences ("one hundred forty two point three") to numeric digits ("142.3")
convert("one hundred five"); // "105"
convert("six hundred and fifty three"); // "653"
convert("zero zero one two three"); // "123"
convert("twelve o three"); // "1203"
convert("thirteen zero nine"); // "1309"
convert("fifteen sixteen"); // "1516"
convert("fourteen ninety two"); // "1492"
convert("nineteen ten"); // "1910"
convert("twenty twenty"); // "2020" <---- ugh!
convert("twenty twenty one"); // "2021" <---- ehhh...
console.log("hi")