Skip to content

Code from the mCoding sample videos

License

Notifications You must be signed in to change notification settings

mCodingLLC/VideosSampleCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

157 Commits

Repository files navigation

This repository contains all the source code shown in my mCoding programming videos on YouTube.

All code in this repository is licensed under the open source MIT license. You don't need to ask permission to use it, feel free! It's not required, but I'd appreciate if you would link my YouTube channel if you used my code!

mCoding YouTube channel

mCoding website

James and his team are available for consulting, contracting, code reviews, and interview prep services.

NCodeVideo
148srcWatch out for this (async) generator cleanup pitfall in Python
147srcRun a Large Language Model (LLM) at home on your GPU
146srcDocker Tutorial for Beginners
145srcPython itertools - The key to mastering iteration
144srcAll 71 built-in Python functions
143srcTop 5 IDE Productivity Hacks That Will Save You Time Programming
142srcWhat you need to know about Startup and Shutdown Events in FastAPI and ASGI Applications
141srcApplication classes vs. functions
140srcAsynchronous Web Apps in Python
139srcNew Windows Command Escape Vulnerability - Critical CVE ... or is it?
138srcAsync for loops in Python
137srcThe ins and outs of context managers and try-finally in Python
136srcPython Debugging (PyCharm + VS Code)
135srcModern Python logging
134no srcWhy Zero times Anything is Zero
133srcYou won't believe it! Import from the Cloud
132srcBloom Filters
131no srcActually, you CAN divide by zero.
130srcPython 3.12 is HERE!
129srcLambda in a Loop is a Code Smell
128srcA forbidden Python technique to put ANYTHING in a dict or set.
127srcDon't make this big O mistake!
126srcWhy I prefer attrs over dataclasses
125srctype(obj) vs. obj.class in Python, and changing an object's class.
124srcPython's collections.abc | InvertibleDict
123srcunique_ptr is NOT just for heap allocations | custom deleters
122srcHow to check if a file exists in Python
121srcunique_ptr: C++'s simplest smart pointer
120srcDoes Python have a ternary operator?
119src21 MORE nooby Python habits
118srcstr vs bytes in Python
117srcIntro to async Python | Writing a Web Crawler
116srcComplex (Gaussian) Rationals - Extending Python's Number hierarchy
115srcFast pow
114srcPython Iterators! COPY or NO COPY?
113srcGetting around the recursion limit
112srcEvery Python dev falls for this (name mangling)
111srcFunctions within functions, closures, and variable scopes in Python
110srcReturn Value Optimization and Copy Elision in C++
109srcIt's time... for PYTHON 3.11!
108srcPython Generators
107src8 things in Python you didn't realize are descriptors
106srcstr/int: Controversial breaking change added to Python
105srcPython's creator wishes this feature never existed
104srcUnlocking your CPU cores in Python (feat. multiprocessing)
103srcFor loops are redundant
102srcHow to use Python features from future versions!
101srcUse THIS for looping over several Python dictionaries
100srcPython's most DISLIKED __dunder__ (and what to use instead)
99srcsum(range(n)) != n(n+1)/2
98srcPermutations - A Python itertools Algorithm
97srcPython's secret second argument to iter()
96srcWhy do some Python classes inherit from object?
95srcMethod Chaining Classes in Python
94srcPositional-only and keyword-only arguments in Python
93srcsuper, Python's most misunderstood feature.
92srcPythonizing Imgui (feat. Cython)
91srcPython lists remember what you did to them
90srcThe real purpose of Python's match statement, feat. CSTs
89srcAnalyzing Python Code from Python - AST Parsing and Custom Lint Checks
88srcDoes std::endl fix your multithreaded prints? (C++)
87no srcA technical interview with the creator of C++, Bjarne Stroustrup
86src31 nooby C++ habits you need to ditch
85no srcBuilding a Python app with Anvil to email me if my website goes down
84srcPython's staticmethod and classmethod, what are they for?
83src25 nooby Python habits you need to ditch
82srcAvoiding import loops in Python
81srcYour code could be 2x faster! Gains from cache locality and branch predictability
80srcPython __slots__, slots, and object layout
79srcWhich Python @dataclass is best? Feat. Pydantic, NamedTuple, attrs...
78srcThe best way to keep your repos tidy.
77srcMind-bending metaclasses - adding function overloads to Python
76src__new__ vs __init__ in Python
75srcYou can pip install straight from GitHub
74srcAutomated Testing in Python with pytest, tox, and GitHub Actions
73srcWhy does Python even allow this? Chained comparison jank.
72srcMultiple Assignments in Python
71srcShould you use "not not x" instead of "bool(x)" in Python?
70srcrestrict: the only C keyword with no C++ equivalent
69srcA fun game show probability problem | Bonus cash stop riddle
68srcSkyline Problem with C++ Solution Explained
67srcYou should put this in all your Python scripts
66srcHow an x becomes a bool in Python, C++, and C
65srcA crypto breakfast: salt, pepper, and hash | Secure Python
64srcMD5 - A broken secure hash algorithm | Python implementation
63srcDiagnose slow Python code. (Feat. async/await)
62srcPython f-strings can do more than you thought. f'{val=}', f'{val!r}', f'{dt:%Y-%m-%d}'
61srcTime to Hack - Cracking passwords using timing information | Secure Python
60srcMathematically Perfect Tongue Twisters | Python Linguistics
59srcPython + YouTube API | Automating descriptions
58srcNot all exceptions are Exceptions | Python Exceptions
57srcPython's New Match Statement is Tricky! Q&A
56srcIntroducing mZips! Python Zip and Zip Longest
55srcThe error messages Python always needed! New in Python 3.10 - Part II
54srcCan you BELIEVE all this new type hinting stuff? New in Python 3.10 - Part I
53src0.1 + 0.2 is NOT 0.3 in Most Programming Languages
52srcHow To Install Python for Data Science
51srcEfficient Exponentiation
50srcVariable Lookup Weirdness in Python
49srcThe Best Way to Check for Optional Arguments in Python
48srcBinary Search - A Different Perspective | Python Algorithms
47srcPython's sharpest corner is ... plus equals? (+=)
46srcEvery PROOF you've seen that .999... = 1 is WRONG
45srcC++ Sudoku Solver in 7 minutes using Recursive Backtracking
44srcPython dataclasses will save you HOURS, also featuring attrs
43src[April Fools 2021] Python 4.0! New old print, mandatory static typing, StackOverflow integration
42srcThank you for 100x-ing my channel in 2 weeks!
41srcC++ First Missing Int, faster than 100%!
40srcHow Fast is Python's Sort? Performance Testing
39srcThe Hottest New Feature Coming In Python 3.10 - Structural Pattern Matching / Match Statement
38srcLongest Increasing Subsequence - Python explanation
37src50 Million Primes In 5 Seconds - Segmented Sieve of Eratosthenes
36srcMagic Methods - Making Python builtins work with your classes
35srcHow to find the Maximum Increasing Sum of a List
34srcChaos and Order - A Brownian Fractal Infinite Zoom to Classical Music
33srcInfinite Zoom on Brownian Motion with Chill Music (4k 60fps 10^541 Zoom)
32srcNumpy Broadcasting Explained
31srcThe Fastest Way to Loop in Python - An Unfortunate Truth
30srcThe Single Most Useful Decorator in Python
29srcSimulating Brownian Motion in Python
28srcJSON Tutorial Python | Basic Python Recipes
27srcTrapping Rain in Python with Numpy | LeetCode Hard Interview Solution
26srcTuring Machine Example Program | Doubling Ones
25srcFind the First Missing Positive Int | Hard Interview Question on LeetCode
24srcMerge K Sorted Lists using a C++ Heap | Hard LeetCode Interview Question
23srcHard LeetCode Interview Question | Regular Expression Matching
22srcSolving Hard LeetCode Interview Questions | Median of Two Sorted Arrays
21srcHow Many Matches in a Single Elimination Tournament? | Challenge Question
20srcCycles in Linked Lists Part 2 - Find the Start of the Cycle
19srcStream Sample - Random Sampling a Read Once Stream | Neat Trick
18srcDetecting Cycles in Linked Lists Using the Tortoise and Hare Algorithm
17srcRemove Unicode �? Characters from CSV files
16srcWhy a list[Derived] is NOT a list[Base]
15srcWriting a Turing Machine in Python Step by Step
14srcFinding Primes in Python with the Sieve of Eratosthenes
13srcFinding Your Largest Files | Basic Python Recipes
12srcCode that runs BEFORE you call a function | Python Weirdness
11src'and' and 'or' do NOT return bools in Python!
10srcOrdering dependencies with TopologicalSorter - New in Python 3.9
9srcHow to flatten a list | Basic Python Recipes
8srcrandbytes and printing garbage for fun - New in Python 3.9
7srcMetadata in type annotations using Annotated - New in Python 3.9
6srcremoveprefix and removesuffix string methods - New in Python 3.9
5srcPython Weirdness - The comma equals ,= operator?
4srcEmpty Truth in Python
3srcRelaxed restrictions on decorators - New feature in Python 3.9
2srcGoodbye, List! Type hinting standard collections - New in Python 3.9
1srcDoeblin Tree
0srcDictionary Union (or/pipe operator) - New Feature in Python 3.9

About

Code from the mCoding sample videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published