Skip to content
View ramcandrews's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report ramcandrews

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. email.blog email.blog Public

    a flask bloging platform. Listen to an imap folder and then post the messages as blog posts.

    Python 1

  2. Normally you can't remove items from... Normally you can't remove items from a dictionary while you are iterating over it. But if you convert it to a list first, there are no problems.
    1
    origDict = { 
    2
        'First name': 'Ryan',
    3
        'Last name': 'M',
    4
        'Subject': 'AI',
    5
        'task': 'Cleaning Data'
  3. a python regex to grab every japanes... a python regex to grab every japanese word from an HTML file
    1
    import re
    2
    
                  
    3
    with open(rootdir + "something in japanese.html", encoding='utf-8', errors='ignore') as reader:
    4
        for line in reader:
    5
            words = re.findall(r"[一-龯ぁ-んァ-ン!:/・()ー]*", line)
  4. simple email regex simple email regex
    1
     [^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+ 
    2
     
    3
     [^@ \\t\\r\\n] matches for anything other than @, space, tab, new lines repetitions of a non-whitespace character.
    4
     
    5
     https://ihateregex.io/expr/email/ (04/17/2022)
  5. Use this code in the top cell of you... Use this code in the top cell of your colab notebook to read data from google drive. It if you are loading thousands of image files or thousands of small files it is slower than just a few larger files.
    1
    from google.colab import drive
    2
    drive.mount('/content/drive/')
    3
    
                  
    4
    data_dir = '/content/drive/My Drive/Colab Notebooks/<your assets>/'