Skip to content

Instantly share code, notes, and snippets.

View soupault's full-sized avatar

Egor Panfilov soupault

View GitHub Profile
class ThreadedDataGenerator(object):
def __init__(self, *args, **kwargs):
self.gp_args = args
self.gp_kwargs = kwargs
self.batch_retrieved = False
self.batch_ready = False
thread = threading.Thread(target=self.run, args=())
thread.daemon = True
thread.start()
@soupault
soupault / pacaur_install.sh
Created February 5, 2017 11:33 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
@soupault
soupault / LabelMeAnnotationTool_Archlinux.md
Last active July 19, 2016 10:31
Installation and running LabelMeAnnotationTool in Archlinux

Install the required packages:

$ sudo pacman -S apache perl perl-cgi php php-cgi php-apache

Download the application code, put it to the server directory, and configure:

$ sudo git clone https://github.com/CSAILVision/LabelMeAnnotationTool.git /srv/http/LabelMeAnnotationTool
$ cd /srv/http/LabelMeAnnotationTool
$ sudo make