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

Block or report Quetzalcohuatl

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 Loading

  1. apple taste test apple taste test
    1
    Apple, Rank, Rating
    2
    Cosmic Crisp, 1, Tart & sweet; 8/10 (Favorite)
    3
    Golden Delight, 11, 1/10
    4
    Envy, 8, 3.5/10
    5
    Honey Crisp, 3, 8/10 (possibly 7/10)
  2. fast inplace pandas sorting fast inplace pandas sorting
    1
    # https://github.com/pandas-dev/pandas/issues/15389
    2
    
    
    3
    import pandas
    4
    import numpy
    5
    import resource
  3. how to freeze Pytorch layers how to freeze Pytorch layers
    1
    # View layers with model.children()
    2
    # Get params with module.parameters()
    3
    
    
    4
    m = resnet50(pretrained=True)
    5
    _ = m.train()
  4. terminal find all running processes ... terminal find all running processes (and kill zombie python processes)
    1
    ps auxww | grep phrase_to_find // find the pid, make sure it's not the grep pid.
    2
    kill -9 <pid>
    3
    
    
    4
    (pkill kills by name, helpful if lots of similarly named things)
  5. Python Bound Class Methods Python Bound Class Methods
    1
    class Car():
    2
        def __init__(self, miles_traveled):
    3
            self.miles_traveled = miles_traveled
    4
        def ride(self, miles):
    5
            self.miles_traveled += miles
  6. Terminal percent RAM used and storag... Terminal percent RAM used and storage used
    1
    (Inspired from howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/
    2
    
    
    3
    free -m | grep Mem | awk '{print ($3/$2)*100}'
    4
    
    
    5
    to show storage: