Skip to content

Instantly share code, notes, and snippets.

View Nandhakumarpro's full-sized avatar
🎯
Focusing

Nandhakumar Nandhakumarpro

🎯
Focusing
  • chennai
View GitHub Profile
@Nandhakumarpro
Nandhakumarpro / pandas_tutorial.ipynb
Last active June 14, 2022 05:07
pandas operations tutorials
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nandhakumarpro
Nandhakumarpro / pandas-groupby-exercises.ipynb
Created June 1, 2022 14:12
Pandas groupby aggregations, transform, apply functions exercise
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nandhakumarpro
Nandhakumarpro / arrow_keys_remap.sh
Last active March 22, 2023 02:52
arrow keys remapping script || useful for developers
xmodmap -e "keycode 66 = Mode_switch"
xmodmap -e "keycode 14 = 5 percent Up" # Caps_lock + 5 = ↑
xmodmap -e "keycode 15 = 6 asciicircum Down" # Caps_Lock + 6 = ↓
xmodmap -e "keycode 16 = 7 ampersand Left" # Caps_lock + 7 = ←
xmodmap -e "keycode 17 = 8 asterisk Right" # Caps_lock + 8 = →
############# you can use u, h, j, n keys for up, left, right, down by below code ############
xmodmap -e "keycode 66 = Mode_switch"
@Nandhakumarpro
Nandhakumarpro / sympy-solve.ipynb
Last active April 24, 2022 07:15
non linear equations solve using sympy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nandhakumarpro
Nandhakumarpro / args_kwargs.ipynb
Last active May 7, 2022 16:54
python args, kwargs explaining
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nandhakumarpro
Nandhakumarpro / django_filter.py
Created April 21, 2022 06:01
filter queryset by fields with conditions
# settings.py
...
...
INSTALLED_APPS = [
...
"django_filters",
]
...
...
@Nandhakumarpro
Nandhakumarpro / tic-tac-toe.py
Last active April 2, 2022 18:20
tic tac toe game using python
r'''
___|__X__|_____
___|__X__|_____
O | O | X
'''
r'''
*
/ \
*---*
/ \ / \
*---*---*
/ \ / \ / \
*---*---*---*
/ \ / \
*---* *---*
@Nandhakumarpro
Nandhakumarpro / parallelogramv2.py
Created April 1, 2022 07:24
parallelogram version 2 draw by python code
r'''
______________
/\ /
/ \ /
/ \ /
/ \ /
/ \ /
/ \ /
/ \/
‾‾‾‾‾‾‾‾‾‾‾‾‾‾
@Nandhakumarpro
Nandhakumarpro / eight-puzzle.py
Last active March 30, 2022 08:56
Eight puzzle game play
r'''
___ ___ ___
| 1 | 2 | 3 |
|‾4‾|‾5‾|‾6‾|
|‾7‾|‾8‾|‾X‾|
‾‾‾ ‾‾‾ ‾‾‾
'''