Skip to content

Instantly share code, notes, and snippets.

View theArjun's full-sized avatar
🇳🇵
Working from Home

Arjun Adhikari theArjun

🇳🇵
Working from Home
View GitHub Profile
@theArjun
theArjun / mcp.json
Created September 12, 2025 15:02
MY MCP Servers
{
"servers":[
"context7":{
"type":"http",
"url":"https://mcp.context7.com/mcp"
},
"sequentialthinking":{
"command":"npx",
"args":[
"-y",
CompileDaemon -build="go build -o main" -command=./main
let numbers = vec![1, 2, 3, 4, 5];
let sum: i32 = numbers.iter().sum();
println!("Sum: {}", sum); // Prints: Sum: 15
let owned_str = String::from("42");
let num: i32 = owned_str.parse().unwrap();
let chars = vec!['a', 'b', 'c'];
for (idx, char) in chars.into_iter().enumerate() {
println!("Index: {}, Char: {}", idx, char);
}
const toggleBreaks = true;
const leftBars = 15;
const rightBars = 15;
const volumeThresh = 20;
const highUsePivot = pivotHigh(leftBars, rightBars, 1);
const lowUsePivot = pivotLow(leftBars, rightBars, 1);
const r1 = plot(highUsePivot, {
color: hasChanged(highUsePivot) ? null : '#FF0000',
@theArjun
theArjun / quote_spider.py
Created December 11, 2022 05:05
Love Quote Scraper using Scrapy
import re
import scrapy
from icecream import ic
from scrapy.http import HtmlResponse
class QuoteSpider(scrapy.Spider):
name = 'quote'
start_urls = ["https://www.imnepal.com/quotes-about-love-nepali/%d/" % i for i in range(1, 9)]
@theArjun
theArjun / make_docker_user.sh
Created November 2, 2022 18:55
Run docker as normal user
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo snap disable docker
sudo snap enable docker
@theArjun
theArjun / postman.js
Created August 28, 2022 04:05
Set token to environment variable from response
pm.test("Set token environment variable", function () {
var response = pm.response.json();
var token = response['data']['token'];
postman.setEnvironmentVariable('token', token);
});
@theArjun
theArjun / Flake8 Configuration
Last active August 29, 2022 06:07
ISORT, Yapf and Flake8 Configuration
Name: flake8
-- Files to Watch
File Type: Python
Scope: Project Files
-- Tools to Run on Changes
Program: $PyInterpreterDirectory$\python
Arguments: -m flake8 $FilePath$ --config=setup.cfg --ignore=E133 --format='%(path)s:%(row)d,%(col)d:%(code)s:%(text)s:https://lintlyci.github.io/Flake8Rules/rules/%(code)s.html'
Output paths to refresh: $FilePath$