This is a collection of language-specific syntax, algorithms, and smaller programs (~100 LOC) in various programming languages for self-learning or reference.
See also: A Python Primer and Cheat Sheet
Basics
Data Science
Machine Learning
Project Euler Problems
Other
See also: A Scala Primer and Cheat Sheet