Skip to content

Instantly share code, notes, and snippets.

View afkcodes's full-sized avatar
💭
afk

Ashish Kumar afkcodes

💭
afk
View GitHub Profile
https://github.com/amejiarosario/dsa.js
# initialization file (not found)
@afkcodes
afkcodes / gplay-reviews.js
Last active January 16, 2020 11:36
A Google Play Reviews Scraper Script Written in Vanilla JS
/* use this on the page which shows all the reviews
something like this :
https://play.google.com/store/apps/details?id=com.google.android.play.games&gl=us&showAllReviews=true
*/
let initalHeight = 0;
let scrollHeight = document.body.scrollHeight;
let scrollingIntensinty = 800;
let reviewsArray = [];
@afkcodes
afkcodes / eslint_prettier_airbnb.md
Created November 29, 2020 17:04 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@afkcodes
afkcodes / kitty.conf
Created July 12, 2021 03:02 — forked from ggsalas/kitty.conf
Kitty terminal - one dark theme [~/.config/kitty/kitty.conf]
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family Monaco
font_family Source Code Pro
@afkcodes
afkcodes / kitty.conf
Created July 12, 2021 03:56 — forked from nicbet/kitty.conf
Kitty Terminal Configuration
# /.config/kitty/kitty.conf
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
@afkcodes
afkcodes / kitty.conf
Created July 12, 2021 13:28
kitty conf
# vim:fileencoding=utf-8:ft=conf
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Thick
# bold_italic_font Operator Mono Medium
@afkcodes
afkcodes / dart.json
Created October 9, 2021 10:28 — forked from arifikhsan/dart.json
snippet from resocoder
{
"Part statement": {
"prefix": "pts",
"body": [
"part '${TM_FILENAME_BASE}.g.dart';",
],
"description": "Creates a filled-in part statement"
},
"Part 'Freezed' statement": {
"prefix": "ptf",
@afkcodes
afkcodes / .eslintrc.json
Created November 11, 2021 12:22 — forked from Halaumo/.eslintrc.json
eslint
// eslint-react
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
// "warnOnUnsupportedTypeScriptVersion": "false",
@afkcodes
afkcodes / dataMiner.js
Created January 5, 2022 07:41 — forked from Harshmakadia/dataMiner.js
twitter-analytics-data-scraper
// 1. Go to https://analytics.twitter.com/
// 2. Keep scrolling till the end until all the stats data is loaded
// 3. Right click on the page click on last option "Inspect" a window should open select console from that
// 4. copy this entire function
function getVal (val) {
val=val.replace(/\,/g,'');