Skip to content

Instantly share code, notes, and snippets.

View ratmcu's full-sized avatar
🏠
Working from home

Rajitha Hathurusinghe ratmcu

🏠
Working from home
View GitHub Profile
@basaks
basaks / Python3.8 on ubuntu22.04 Jammy
Last active August 11, 2024 04:01
Python3.8 on ubuntu 22.04 Jammy
## Install Python3.8 interpreter on ubuntu 22.04
On a terminal just do the following steps:
Install dependencies:
sudo apt install tar build-essential checkinstall libreadline-dev \
libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \
libbz2-dev openssl libffi-dev
@Artistic18
Artistic18 / cp_syllabus.md
Created January 23, 2020 19:14 — forked from sharmaeklavya2/cp_syllabus.md
Competitive Programming Syllabus

Competitive Programming Syllabus

Geometry

  • Problems - Refer the article for a list of problems which can be solved using Rotating Calipers technique.
@baojie
baojie / hello_multiprocessing.py
Created July 21, 2013 07:04
Python multiprocessing hello world. Split a list and process sublists in different jobs
import multiprocessing
# split a list into evenly sized chunks
def chunks(l, n):
return [l[i:i+n] for i in range(0, len(l), n)]
def do_job(job_id, data_slice):
for item in data_slice:
print "job", job_id, item