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 / 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 / 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 / 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 / awesome-frontend.md
Last active January 22, 2017 09:15
My Awesome Front-End Articles
@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 / 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 / fp-light.md
Last active January 6, 2017 19:35
Functional Light JS Notes

Functional Light JS Notes

(1) Morphism - A fancy way of describing a set of values that maps to another set of values

(2) Function vs Procedure -Functions take input & return some ouptut; Procedures need not return

(3) Arity - Arity is the number of parameters in a function declaration.

(4) Unary Function - A function with arity of 1 is also referred to as a unary function.