Skip to content

Instantly share code, notes, and snippets.

const moneyFilter = value => Intl.NumberFormat('en-IN', { style: 'currency', currency: 'USD' }).format(value)
console.log(moneyFilter(3210)) // "US$ 3,210.00"
@mitramejia
mitramejia / two-sum.js
Created August 13, 2020 15:10
Two Sum
/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
var twoSum = function(nums, target) {
//hash table
var hash = {};
@mitramejia
mitramejia / .hyper.js
Created December 11, 2021 19:45
Hyperterm config
//
@mitramejia
mitramejia / vimium-theme-macos.css
Last active December 13, 2021 14:09
Vimium Mac OS Theme
:root {
--font-size: 14.5;
--font-size-hints: 12.5;
--font-size-url: 12.5;
--font-weight: normal;
--font-weight-medium: medium;
--font-weight-bold: bold;
--font: "SF UI Display", "Helvetica", "Arial", sans-serif; /* Font used in the UI */