Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Dead

Akshay Kadam (A2K) deadcoder0904

:octocat:
Dead
View GitHub Profile
View custom.js
// Add script in console.
// var _cScript = document.createElement('script');_cScript.src='../../../tools/custom.js';document.head.appendChild(_cScript);
// ==================================================
function sequenceClass() {
this.init = function () {
var tClass = document.getElementsByClassName('t');
for (var i = 0; i < tClass.length; i++) {
tClass[i].style.boxShadow = '0px 0px 10px 2px #000000';
tClass[i].setAttribute('aria-hidden', 'true');
tClass[i].onclick = mouseEvent;
@deadcoder0904
deadcoder0904 / README.md
Last active Apr 5, 2019
Automate boring tasks with DOM Testing Library by Kent C Dodds
View README.md

Automate boring tasks with DOM Testing Library by Kent C Dodds

Watch the video for which tasks to automate

@deadcoder0904
deadcoder0904 / App.js
Created Jan 12, 2019
React Native Simple Form
View App.js
class Form extends React.Component {
constructor(props) {
super(props);
this.state = {
name: "",
email: "",
};
}
_storeInput = (key, value) => {
@deadcoder0904
deadcoder0904 / hack.js
Created Feb 12, 2018
Unfollow everyone on Github
View hack.js
[...document.querySelectorAll('.btn.btn-sm.js-toggler-target')].map(a => a.click())
@deadcoder0904
deadcoder0904 / app.js
Last active Oct 27, 2017
Get Country Codes & Flags of Countires w.r.t Country Codes
View app.js
// 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 = {};
@deadcoder0904
deadcoder0904 / allThemes.json
Last active Sep 11, 2017
Color Names for Theme with RGB values
View allThemes.json
[
{
"name": "Air Force blue",
"value": "#5d8aa8"
},
{
"name": "Alice blue",
"value": "#f0f8ff"
},
{
View eslintrc.md

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 / keywords.js
Created Jul 12, 2017
Keywords Everywhere get only keywords in an array format
View keywords.js
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 / stations.js
Last active Mar 27, 2017
List of Stations
View stations.js
[
{
"name":"Churchgate",
"state":"Mumbai",
"code":"C",
"price":5
},
{
"name":"Marine Lines",
"state":"Mumbai",
You can’t perform that action at this time.