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
@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