Some of the inspiring or well-written articles on developing Front-End Applications
This file contains 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
[ | |
{ | |
"number": 1, | |
"name": "Hydrogen", | |
"symbol": "H", | |
"mass": 1.00794, | |
"type": "unknown" | |
}, | |
{ | |
"number": 2, |
This file contains 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
var figure = document.querySelectorAll('.sw-media'); | |
for (let i of figure) { | |
console.log(JSON.stringify(i.children[0].src)); | |
} | |
var img = document.querySelectorAll('.sw-para>img'); | |
for (let i of img) { | |
console.log(JSON.stringify(i.src)); | |
} |
This file contains 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":"Churchgate", | |
"state":"Mumbai", | |
"code":"C", | |
"price":5 | |
}, | |
{ | |
"name":"Marine Lines", | |
"state":"Mumbai", |
This file contains 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
var el = $('.workshopper>code'); | |
var str = ''; | |
for(var i = 0 ; i < el.length ; i++){ | |
if(el[i].innerHTML.indexOf('npm install -g') !== -1) | |
str += 'sudo npm install -g' + el[i].innerHTML.substr(14) + '\n'; | |
}; | |
console.log(str); |
This file contains 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
var sorting = document.querySelectorAll('td'); | |
var keywords = []; | |
sorting.forEach((keyword, i) => { | |
if((i - 1) % 8 === 0) keywords.push(keyword.innerHTML); | |
}); | |
console.log(JSON.stringify(keywords, null, 2)); |
This file contains 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
// Get country codes & flag of countries with respect to country codes | |
const fetch = require("node-fetch"); | |
const NEW_LINES = `\n\n`; | |
const EMOJIS = `${NEW_LINES}😀 😃 😄 😁 😆 😅 😂 🤣 ☺️ 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😜 😝 😛 🤑 🤗 🤓 😎 🤡 🤠 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 😤 😠 😡 😶 😐 😑 😯 😦 😧 😮 😲 😵 😳 😱 😨 😰 😢 😥 🤤 😭 😓 😪 😴 🙄 🤔 🤥 😬 🤐 🤢 🤧 😷 🤒 🤕 😈 👿 👹 👺 💩 👻 💀 ☠️ 👽 👾 🤖 🎃 😺 😸 😹 😻 😼${NEW_LINES}`; | |
const FIXER_URI = "https://api.fixer.io/latest"; | |
const REST_COUNTRIES_URI = "https://restcountries.eu/rest/v2/alpha/"; | |
const COUNTRY_URI = "http://country.io/currency.json"; | |
let currencyCodes = []; | |
let currencyOfCountry = []; | |
const flagsWithCurrencies = {}; |