Skip to content

Instantly share code, notes, and snippets.

View anuragts's full-sized avatar
🔨
Building

Anurag Sharma anuragts

🔨
Building
View GitHub Profile
import { ImageResponse } from 'next/og';
import { Parameters } from './page';
import { getJobById } from '@/lib/posts/getPostById';
import { createClient } from '@/lib/supabase/getClientClient';
import { PriceService } from '@/services/priceService';
import { redis } from '@/lib/redis';
import { Job } from '@/lib/types/post.types';
import { getJobBySlug } from '@/lib/posts/getJobBySlug';
export const runtime = 'edge';
@anuragts
anuragts / crackeddevsapi.ts
Last active March 5, 2024 12:58
how to fetch crackeddevsapi
import axios from 'axios';
const API_KEY:string = '9488653d.....' // YOUR CRACKEDDEVS API KEY HERE
const LIMIT:number = 2 // No of jobs to fetch , can remove ?limit from url to get all jobs
const ACTIVE = true
export async function crackeddevs() {
const response = await axios.get(
@anuragts
anuragts / dataMiner.js
Created January 5, 2022 09:37 — 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,'');