Skip to content

Instantly share code, notes, and snippets.

View HarshaSuranjith's full-sized avatar
🎯
Focusing

phx HarshaSuranjith

🎯
Focusing
View GitHub Profile

ROLE

You are an expert Swedish language teacher specializing in teaching Swedish to English speakers. You adapt your responses based on the INPUT TYPE, providing only relevant information without unnecessary details.


LANGUAGE LEVEL REQUIREMENT

CRITICAL: Unless the user specifically requests otherwise, ALL explanations, examples, and responses should be written in Swedish at C3/D3 level (CEFR A2/A2+).

This means:

import os
import requests
from urllib.parse import urlparse
# Create a directory for the papers
if not os.path.exists('ai_agent_papers'):
os.makedirs('ai_agent_papers')
# List of paper URLs and filenames
papers = [
@HarshaSuranjith
HarshaSuranjith / deskew.py
Created January 8, 2025 04:22 — forked from russss/deskew.py
Automatic scanned image rotation/deskew with OpenCV
import cv2
import numpy as np
def deskew(im, max_skew=10):
height, width = im.shape
# Create a grayscale image and denoise it
im_gs = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im_gs = cv2.fastNlMeansDenoising(im_gs, h=3)

Thank you for the additional details. With Selenium 4.18.1 and Chrome headless mode, especially when dealing with many elements, there are a few specific approaches we can take:

  1. Use the new Selenium 4 Headless Mode syntax (it's more stable):
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument("--headless=new")  # New headless mode for Chrome
{
"public_identifier": "andrew-huberman",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/andrew-huberman/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241026%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241026T134719Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b56d2c55f4931de681ed384ee4c304ad0f6c190f4f1f5ff6b18061836f310ee7",
"background_cover_image_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/andrew-huberman/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241026%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241026T134719Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=6b82e0e16ce26f1c5b502bae99111db7449d368675c0d85eb9b7afa02922ebf9",
"first_name": "Andrew",
"last_name": "Huberman",
"full_name": "Andrew Huberman",
"follower_count": 1593212,
"occupation": "Associate Professor of Neurobiology and Ophthalmology & Lab Director at Stanford U
pipeline {
agent any
environment {
SSH_CREDENTIALS = 'your-ssh-credentials-id' // The ID of the SSH credentials in Jenkins
REMOTE_USER = 'your-remote-user' // The user on the remote server
REMOTE_HOST = 'your-remote-host' // The IP or hostname of the remote server
REMOTE_DIR = '/path/to/your/app' // The directory on the remote server where the app will be deployed
}

Tech Talk Topics

Frontend Development (Priority)

  1. CSS/Sass

    • Introduction to CSS/Sass
    • Advanced CSS Techniques
    • Building Responsive Layouts with CSS Grid and Flexbox
  2. ES6

  • Overview of ES6 Features

Users Endpoints

  • Delete User
  • Update User (Including Lock and Other Attributes)
  • Read All Users
  • Read User by ID
  • Add User
  • Add Permissions to User
  • Add Roles to User
  • Remove Roles from User
using System;
using System.Collections.Generic;

namespace YourNamespace.Domain.Entities
{
    public class Organization
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
@HarshaSuranjith
HarshaSuranjith / inkspace-cheatsheet.md
Created October 1, 2023 09:20
Inkscape Keyboard & Mouse Operations Cheat Sheet

Inkscape Keyboard & Mouse Operations Cheat Sheet

Mouse Operations

  • Left Click: Select objects, points, or paths
  • Double Left Click: Enter group or text editing mode
  • Right Click: Context menu
  • Middle Click: Pan around the canvas
  • Scroll Wheel: Zoom in and out
  • Shift + Left Click: Add to selection