Skip to content

Instantly share code, notes, and snippets.

View deadcoder0904's full-sized avatar
:octocat:
Dead

akshay kadam (a2k) deadcoder0904

:octocat:
Dead
View GitHub Profile
@deadcoder0904
deadcoder0904 / periodic_table.js
Created January 11, 2017 18:21
Periodic Table
[
{
"number": 1,
"name": "Hydrogen",
"symbol": "H",
"mass": 1.00794,
"type": "unknown"
},
{
"number": 2,
@deadcoder0904
deadcoder0904 / quotes.js
Last active January 14, 2017 19:55
Download ScoopWhoop Pictorial Quotes using Console
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));
}
@deadcoder0904
deadcoder0904 / awesome-frontend.md
Last active January 22, 2017 09:15
My Awesome Front-End Articles
@deadcoder0904
deadcoder0904 / stations.js
Last active March 27, 2017 10:15
List of Stations
[
{
"name":"Churchgate",
"state":"Mumbai",
"code":"C",
"price":5
},
{
"name":"Marine Lines",
"state":"Mumbai",
@deadcoder0904
deadcoder0904 / nodeschool_modules.js
Last active May 22, 2017 14:04
Download all node school modules in 1 click
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);
@deadcoder0904
deadcoder0904 / keywords.js
Created July 12, 2017 10:42
Keywords Everywhere get only keywords in an array format
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));
@deadcoder0904
deadcoder0904 / eslintrc.md
Last active October 14, 2017 09:51
ESLINT CONFIG

Step 1 : Install eslint & babel-eslint

yarn add eslint babel-eslint -D

Step 2 : Start setup

./node_modules/.bin/eslint --init

Step 3 : Add the following to .eslintrc.json

@deadcoder0904
deadcoder0904 / app.js
Last active October 27, 2017 12:33
Get Country Codes & Flags of Countires w.r.t Country Codes
// 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 = {};