Babak (@bkeyvani) profile picture

Pythonista, Data Analyst, Web Developer, Machine Learning enthusiast / Data Scientist-to-be, Technologist, Geek, Aspiring Robotisist, & Hobbyist

Joined January 2009
Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)Photo by Babak (@bkeyvani)
A computer scientists' geeky scary #Halloween office decoration #cs #geek
1
1
Hey @codewithanthony Thanks for the great video explanations. I was wondering if you could shed some light on the following. I can't figure out why the comparison in `f2` evaluates to `False`. Doesn't python evaluate the right hand of the `==` first? 1/ 2 #Python
1
27
I've included the diff of `dis.dis` of both `f1` and `f2` on the top, and removed the line numbers for a cleaner diff. 2/2
5
3 ways to delete in insert mode - build edits you can repeat with dot: • ctrl-h – Delete previous char • ctrl-w – Previous word • ctrl-u – Entire line (except indent) 👉 Read the tip: bit.ly/3onx4CM 📨 Subscribe for more: bit.ly/vimtricks
2
13
1
111
11,970
Stanford has released Prof. Manning's NLP course for free (!!!) on Youtube if you are interested in diving deeper into NLP. It starts with the very basic word2vec and expends to: -> Domain adaptation for supervised sentiment -> Retrieval augmented in-context learning -> Advanced behavioral evaluation -> Analysis methods -> More NLP methods Happy A.B.L <Always Be Learning> y'all! youtube.com/watch?v=PSGIodTN…
9
332
1
1,642
271,668
Stay in search mode in Vim by using Ctrl-g and Ctrl-t after searching for a pattern, instead of pressing enter. Refine your pattern faster this way. Read the tip: bit.ly/2Gq6p6u Subscribe for free Vim tips: bit.ly/vimtricks
2
17
2
150
16,693
Quickly add empty lines above and below with Unimpaired 👉 bit.ly/3aC7uDq [ + space - Add line above ] + space - Below According to our stats, this is the most hated VimTrick we've published. 🤷‍♂️ 📨 Subscribe for (better) #vim tips: bit.ly/vimtrickspace
2
15
1
157
16,045
Vim's gn command will go to the next match and select it. On the blog post, we show how to build repeatable operations by combining this with other commands. 👉 Read the tip: bit.ly/3rUgUS3 📨 Subscribe for more: bit.ly/vimtricks
14
1
78
10,022
Use g; to jump back to your last change in Vim: • :changes - Show list of changes • g; - Jump to previous • g, - Jump to next 👉 Read the tip: bit.ly/2G0u0dL 🖥️ Watch the tip: bit.ly/31zYqvM 📨 Join for weekly Vim tips: bit.ly/vimtricks
13
102
9,943
Sort lines in Vim: • :sort - sort all lines • :sort! - sort in reverse • :sort u - remove dupes and sort • :sort i - ignore case • :sort n - sort numerically 👉 Our tutorial has more ways: bit.ly/3gxMUFm 📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
12
1
159
13,436
SQL in a nutshell:
7
425
4
1,695
143,080
Data structures form the foundation of programming. Here’s a straightforward guide to get you started (with visuals):
17
80
346
49,690
Jump between methods or functions in Vim with ]m: • ]m jump to beginning of next method • ]M end of next • [m beginning of previous • [M end of previous 👉 Read the full tip: bit.ly/31aCtDo 📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
11
1
97
10,789
Did you know you can access man pages from Vim? • leader K - Press with the cursor on any word to open the man page for that command • :Man command - Open that command's man page 👉 Use cases on the blog: bit.ly/30f2aS9 📨 More Vim tips: bit.ly/vimtricks
13
44
8,956
If you want to know the secret to optimizing SQL queries, open this: 🧵
36
418
6
1,787
242,090
Use to undo all your changes in insert mode, but stay in insert mode. I like this better than using and u and then reentering insert mode. Read the tip: bit.ly/36zOCEq Subscribe for more tips like these: bit.ly/vimtricks
2
13
3
158
22,984
Change case inside a substitution pattern: • \U – uppercase everything after • \L – lowercase • \u – uppercase next char • \l – lowercase • \e or \E – stops changing 👉 Read the tip: bit.ly/2Joqo78 📨 Sign up for our Vim tips newsletter: bit.ly/vimtricks
24
1
141
19,950
Extract lines from a file by visually selecting them and then using :w path/to/file Then reselect the last visual selection with gv and press d to delete. 👉 Tutorial: bit.ly/36SvyAb 📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
1
26
4
198
27,599
Use & in your replacement patterns to insert the matched text. For example, adding markdown links to URLs: %s/https.*/[&]()/g 👉 Read the tip: bit.ly/35pafab 📨 Subscribe to our newsletter: bit.ly/vimtricks
5
46
5
379
36,062
Did you know Vim can read and edit Zip and other archives out of the box? Works with gzip, tar, and even files that use Zip under the hood like xlsx and docx! 👉 Read the post: bit.ly/31J7vlG 📨 Get our newsletter: bit.ly/vimtricks
2
13
114
15,874