Skip to content
View narendranathjoshi's full-sized avatar
Block or Report

Block or report narendranathjoshi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Print every nth element when iterati... Print every nth element when iterating over large lists - Python 3
    1
    def iterctr(items, n):
    2
        ctr = 0
    3
        for item in items:
    4
            ctr += 1
    5
            if ctr % n == 0:
  2. Weighted Choice in Python Weighted Choice in Python
    1
    def weighted_choice(choices):
    2
        total = sum(w for c, w in choices)
    3
        r = random.uniform(0, total)
    4
        upto = 0
    5
        for c, w in choices:
  3. Count Rows in All Tables in PostgreSQL Count Rows in All Tables in PostgreSQL
    1
    SELECT schemaname,relname,n_live_tup 
    2
    FROM pg_stat_user_tables 
    3
    ORDER BY n_live_tup DESC;
  4. news-article-classifier news-article-classifier Public

    Classfies articles as original (written by an actual human) or fake (trigram language model generated)

    Python

  5. visual-qa visual-qa Public

    Visual Question Answering project as a part of 11-777 course requirements

    Python 1