Skip to content

Instantly share code, notes, and snippets.

View nebiyuelias1's full-sized avatar
🏠
Working from home

Nebiyu nebiyuelias1

🏠
Working from home
View GitHub Profile
@nebiyuelias1
nebiyuelias1 / mongodb_6_on_wsl2_ubuntu_2204.md
Created March 18, 2024 08:01 — forked from leobeeson/mongodb_6_on_wsl2_ubuntu_2204.md
Installation of MongoDB 6.0 on WSL2 Ubuntu 22.04

Installation of MongoDB 6.0 on WSL2 Ubuntu 22.04

Installed MongoDB using the following guide: Install MongoDB

However, the installation in the guide is for MongoDB 5.0 on WSL with Ubuntu 20.04 (focal) distro.

The following is an adaptation of the guide for installing MongoDB 6.0 on WSL with Ubuntu 22.04 jammy distro.

  1. Open your WSL terminal (ie. Ubuntu) and go to your home directory:: cd ~
  2. Update your Ubuntu packages: sudo apt update
@nebiyuelias1
nebiyuelias1 / proposal.md
Last active March 29, 2024 15:37 — forked from DevilsAutumn/proposal.md
GSoC 2024: django-stubs

GSoC 2024 Proposal: Improve django-stubs coverage

Table of content

  1. Abstract
    • 1.1 Overview
    • 1.2 Goals
    • 1.3 Benefits
  2. The solution
  • 2.1 Modified CreateModel operation .
@nebiyuelias1
nebiyuelias1 / iforestasd.py
Created December 1, 2023 04:49
IForestASD with pysad
import numpy as np
from sklearn.utils import shuffle
from pysad.models import IForestASD
from pysad.transform.preprocessing import InstanceUnitNormScaler
from pysad.transform.postprocessing import RunningAveragePostprocessor
from pysad.utils import Data
from pysad.evaluation import AUROCMetric
from pysad.utils.array_streamer import ArrayStreamer
from tqdm import tqdm
import pandas as pd
class Person(object):
def __init__(self, name):
print('Instantiating a person')
self.name = name
def __str__(self):
return self.name
def say_selam(p=Person('Nebiyu')):
print(f'Selam {p}')
# I'm calling the function without providing a value for the
# paused_at parameter
item.pause_item(request.user)
def pause_item(self, user=None, paused_at=timezone.now()):
self.set_paused_at(paused_at)
self.set_paused_by(user)
self.set_is_paused(True)
return self.get_paused_at()
@nebiyuelias1
nebiyuelias1 / trending.py
Created November 8, 2021 04:49
Trending factor calculation