Skip to content

Instantly share code, notes, and snippets.

View naresh-io's full-sized avatar
🏠
Working from home

Naresh naresh-io

🏠
Working from home
View GitHub Profile
@SamuelMwangiW
SamuelMwangiW / pint-fixer.yaml
Last active January 13, 2024 14:58
A Laravel pint config json and Github workflow to ensure every push is formated uniformly
name: Check & fix styling
on: [push]
permissions:
contents: write
jobs:
pint-fixer:
runs-on: ubuntu-latest
@Harshmakadia
Harshmakadia / dataMiner.js
Last active February 22, 2022 13:20
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,'');
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e
// by @levelsio
// HOW TO
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1
// 2) Publish your Google Sheet, File -> Publish To Web
// 3) Copy the SHEET_ID in the URL, put it in here below:
const endpoint = "https://spreadsheets.google.com/feeds/cells/SHEET_ID/1/public/full?alt=json"
// 4) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)