Skip to content

Instantly share code, notes, and snippets.

@werediver
werediver / singleton.py
Created December 28, 2012 09:51
A thread safe implementation of singleton pattern in Python. Based on tornado.ioloop.IOLoop.instance() approach.
import threading
# Based on tornado.ioloop.IOLoop.instance() approach.
# See https://github.com/facebook/tornado
class SingletonMixin(object):
__singleton_lock = threading.Lock()
__singleton_instance = None
@classmethod
@cmeiklejohn
cmeiklejohn / gist:8346377
Last active January 2, 2016 18:49
Think Distributed Systems Summer School; Providence, RI
Think Distributed Systems Summer School
Providence, RI
Curriculum
Friday (night session, open discussion)
* Background, introductions
* What are you working on in distributed systems?
* Lightning talks on research or open problems
@carlosmcevilly
carlosmcevilly / bloom.py
Last active August 30, 2018 08:00
A bloom filter implementation with auto-resizing buckets, and the ability to also store histograms.
#!/usr/local/bin/python3
"""
store and check items in a bloom filter
limitations:
- not optimized for speed.
- data structures on disk are not protected from multiple writers... so, use accordingly.
- some other rough edges... under development. example: no quiet option.
- mixing conventional bloom filter and vector treatment complicates things somewhat.
@shagunsodhani
shagunsodhani / CurriculumLearning.md
Created May 8, 2016 17:14
Notes for Curriculum Learning paper

Curriculum Learning

Introduction

  • Curriculum Learning - When training machine learning models, start with easier subtasks and gradually increase the difficulty level of the tasks.
  • Motivation comes from the observation that humans and animals seem to learn better when trained with a curriculum like a strategy.
  • Link to the paper.

Contributions of the paper