This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing, threading, time, Queue | |
import zmq | |
class RPCServer(threading.Thread): | |
def __init__(self, rpc_address, queue): | |
super(RPCServer, self).__init__(name="RPC server") | |
self.queue = queue | |
self.rpc_address = rpc_address | |
self.stopped = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading, multiprocessing, time, Queue | |
from spyne import MethodContext | |
from spyne.application import Application | |
from spyne.service import ServiceBase | |
from spyne.decorator import rpc | |
from spyne.protocol.msgpack import MessagePackRpc | |
from spyne.client.zeromq import ZeroMQClient | |
from spyne.auxproc import process_contexts | |
from spyne.server.zeromq import ZeroMQServer, ZmqMethodContext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import Queue | |
import random, time | |
import os, psutil | |
import gevent | |
import gevent.queue | |
proc = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import pandas as pd | |
import datetime | |
time_format = '%d. %m. %Y %-H:%M' | |
def from_javatime(time): | |
return datetime.datetime.fromtimestamp(time // 1000) | |
def quote(s): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, glob, shutil, bencode | |
from pprint import pprint | |
fail_path = 'failed' | |
def fix_resume(resume_path, old_destination, new_destination, old_incomplete, new_incomplete): | |
for path in glob.glob(os.path.join(resume_path, '*.resume')): | |
# print(path) | |
with open(path, 'r') as f: | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function | |
import os | |
import cv2 | |
import numpy as np | |
from sklearn.datasets import fetch_mldata | |
from sklearn.cross_validation import train_test_split |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "LeNet" | |
layer { | |
name: "mnist" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
data_param { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The train/test net protocol buffer definition | |
net: "lenet_train_test.prototxt" | |
# test_iter specifies how many forward passes the test should carry out. | |
# In the case of MNIST, we have test batch size 100 and 100 test iterations, | |
# covering the full 10,000 testing images. | |
test_iter: 100 | |
# Carry out testing every 20 training iterations. | |
test_interval: 20 | |
# The base learning rate, momentum and the weight decay of the network. | |
base_lr: 0.01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function | |
import os | |
import cv2 | |
import numpy as np | |
from sklearn.datasets import fetch_mldata | |
from sklearn.cross_validation import train_test_split |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/owncloud/lib/private/config.php on line 178 | |
PHP Fatal error: Call to a member function getValue() on a non-object in /var/www/localhost/htdocs/owncloud/lib/private/legacy/config.php on line 46 |