1. Pandas Useful Tricks

    Introduction

    Here I want to write a little about pandas that I play with sometimes and share some useful pandas methods. Notice the input data comes from module pydataset that comes with a bunch of popular dataset.

  2. May JS be understood through Python

    Published: Sat 29 January 2022
    By Alex

    In misc.

    How I Learn JS

    • codecademy.com
    • 100 days of web with Python

    Shrotly about problem

    I once read a great article about JavaScript on realpython.com While learning JS you often think about how this portion of JS code could be written in Python. So I decided to white chunks …

    read more
  3. Namedtuple Can Become a Json

    Published: Thu 14 October 2021
    By Alex

    In misc.

    How Once I Needed To Converte namedtuple

    Shrotly about problem

    I once needed to make a json of following form from list of strings ["lorem", "ipsum"]

    lorem_fields = [{
      "tag": "input",
      "name": "lorem",
      "type": "text",
      "human_label": "Lorem"
    }, {
      "tag": "input",
      "name": "ipsum",
      "type": "text",
        "human_label": "ipsum"
    }]
    

    Code:

    from collections import namedtuple …
    read more
  4. Debugging it all

    Published: Wed 11 August 2021
    By Alex

    In misc.

    Setting Up for Python >= 3.7

    python -m pdb or breakpoint() when older python import pdb; pdb.set_trace()

    Basic commands

    l (ll) list lines around breakpoint p (pp) pretty print n (ext) statement c (ontinue) program s (tep) into a function i (nteract) enter REPL !command (e.g. !help)

    ressources …

    read more
  5. Configure Custom Domain

    Published: Mon 01 March 2021
    By Alex

    In misc.

    Set a custom domain for my GitHub Pages site

    I have pelican powered static site and world can acces it at my github pages : thisAKcode.github.io.
    What if I want to be a fancy and get my own custom domain name and assign it to my GitHub Pages website …

    read more
  6. Change Pelican Theme

    Published: Fri 12 February 2021
    By Alex

    In misc.

    Choose theme

    html5-dopetrope is theme I like. To choose theme for your blog add cloned theme repo to your pelican installation... \venv\Lib\site-packages\pelican\themes

    bash
    cd \pelican themes
    cp html5-dopetrope C:\blog_depend\venv\Lib\site-packages\pelican\themes
    

    how to apply theme

    .... ...

    Plugins

    You have to check whether your …

    read more

« Page 3 / 4 »

links

social