Skip to content

Instantly share code, notes, and snippets.

View anuragts's full-sized avatar
🔨
Building

Anurag anuragts

🔨
Building
View GitHub Profile
@anuragts
anuragts / demo.py
Last active November 17, 2024 21:47
"""Run `pip install ollama 'fastapi[standard]' phidata` to install dependencies."""
"Pull the local model with - ollama pull hhao/qwen2.5-coder-tools:32b"
from textwrap import dedent
from datetime import datetime
from phi.agent import Agent
from phi.playground import Playground, serve_playground_app
from phi.model.ollama import Ollama
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,'');