Skip to content

Instantly share code, notes, and snippets.

View amolmt's full-sized avatar
🧑‍💻
TAP TAP TAP

Amol Tangade amolmt

🧑‍💻
TAP TAP TAP
View GitHub Profile
@amolmt
amolmt / config.json
Created August 8, 2022 18:41
azure_webapp_container_config
[
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "xxxxxxxxxxx",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "app_url",
"slotSetting": false
NAME,SUBSCRIPTION,LOCATION,
"appsvc_linux_centralus","Azure for Students","Central US"
"cloud-shell-storage-centralindia","Azure for Students","Central India"
"handsOn","Azure for Students","West India"
@amolmt
amolmt / findingAndRemovingDups.js
Created February 17, 2022 03:25
removing the duplicates from an array and finding the duplicates
//removing the duplicates from an array
const arr = [1, 2, 2, 3, 4, 5, 6, 6];
// using set
const uniqueNumbers = [...new Set(arr)];
const unique = Array.from(new Set(arr))
console.log(uniqueNumbers);
console.log(unique);
@amolmt
amolmt / gonna.gif
Created February 6, 2022 15:00 — forked from ovflowd/gonna.gif
gonna
gonna.gif
@amolmt
amolmt / you.gif
Created February 6, 2022 14:59 — forked from ovflowd/you.gif
you up
you.gif
@amolmt
amolmt / give.gif
Created February 6, 2022 14:59 — forked from ovflowd/give.gif
give
give.gif
@amolmt
amolmt / never.gif
Created February 6, 2022 14:59 — forked from ovflowd/never.gif
never
never.gif
@amolmt
amolmt / MissingMigrants-Global-2021-12-17--20_05_01.csv
Last active December 17, 2021 18:46
missing migrants dataset
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
"Main ID","Incident ID",Region,"Incident Date",Year,"Reported Month","Number Dead","Minimum Estimated Number of Missing","Total Number of Dead and Missing","Number of Survivors","Number of Females","Number of Males","Number of Children","Cause of Death","Location of death","Information Source",Coordinates,"Migrantion route",URL,"UNSD Geographical Grouping","Source Quality"
2021.MMP00001,2021.MMP00001,"North America","Fri, 01/01/2021 - 12:00",2021,January,2,,2,,,,,"Harsh environmental conditions / lack of adequate shelter, food, water","Unspecified location in Big Bend Border Patrol Sector, Terrell County Texas, USA","US Border Patrol","29.36820243, -103.7272989","US-Mexico border crossing",https://archive.vn/TFgOs,"Northern America",5
2021.MMP00002,2021.MMP00002,"North America","Sat, 01/02/2021 - 12:00",2021,January,1,,1,,1,,,"Vehicle accident / death linked to hazardous transport","Sierra Blanca, Hudspeth County, Texas, USA","El Comercio, Ministry of Foreign Affairs Ecuador","31.1745732, -105.3571764","US-Me

ES6 Array methods

let items = [
  { name: "iPhone", price: 1200 },
  { name: "OnePlus", price: 1000 },
  { name: "Samsung", price: 900 },
];