Skip to content

Instantly share code, notes, and snippets.

@dimart
dimart / test.txt
Last active October 13, 2015 21:16
Ratings
/* run 1 */
...
[1 4 4 3 1 4 1 1 1 2 3 2 4 5 3 1 4 4 5 3 4 1 4 1 1 4 1 1 3 4 1 4]
[3 2 1 3 3 1 1 2 3 3 1 4 2 1 1 4 3 1 1 1 1 4 3 1 1 1 1 1 2 1 3 1 1 1 1 1 1 3 1 1 1 1 1 1 3 1 1 1 5 1]
[3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 2 3 1 1 1 1 1 1 1 1 1 1]
/* run 2 */
...
[3 1 1 4 3 1 3 3 3 2 4 2 1 5 4 3 1 1 5 4 1 3 1 3 3 1 3 3 4 1 3 1]
[4 2 1 4 4 1 1 2 4 4 1 5 2 1 1 5 4 1 1 1 1 5 4 1 1 1 1 1 2 1 4 1 1 1 1 1 1 4 1 1 1 1 1 1 4 1 1 1 3 1]
@dimart
dimart / rs.py
Created October 13, 2015 20:47
random numbers generator
import numpy as np
from sklearn.naive_bayes import GaussianNB
from sklearn.cluster import KMeans
import hdf5_getters as h5
import glob
import os
import scipy
@dimart
dimart / log
Last active August 29, 2015 14:17
installing cvmfs
dimart@gsoc:~/cvmfs/build$ cmake ../
.......
dimart@gsoc:~/cvmfs/build$ make
.......
dimart@gsoc:~/cvmfs/build$ sudo checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
@dimart
dimart / out
Created March 13, 2015 14:54
log-cmake
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@dimart
dimart / log.c
Last active August 29, 2015 14:15
CernVM-FS
I`ve got next error:
[ 94%] Building CXX object cvmfs/CMakeFiles/cvmfs_swissknife.dir/swissknife_sync.cc.o
In file included from /Users/dimart/Programming/GSoC/CERN/cvmfs/cvmfs/swissknife_sync.cc:22:
In file included from /Users/dimart/Programming/GSoC/CERN/cvmfs/cvmfs/swissknife_sync.h:10:
In file included from /Users/dimart/Programming/GSoC/CERN/cvmfs/cvmfs/upload.h:98:
/Users/dimart/Programming/GSoC/CERN/cvmfs/cvmfs/file_processing/file_processor.h:64:1: warning:
class 'SpoolerDefinition' was previously declared as a struct
[-Wmismatched-tags]
class SpoolerDefinition;
@dimart
dimart / a.py
Created December 31, 2014 10:17
from cv2 import *
import numpy as np
def trackPoints(vid, name, detector):
optflowParams = dict(
nextPts = None,
winSize = (15, 15),
maxLevel = 2,
criteria = (TERM_CRITERIA_EPS | TERM_CRITERIA_COUNT, 10, 0.03)
@dimart
dimart / 12017
Created December 18, 2014 18:43
patch from CodePlex
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using QuickGraph;
using QuickGraph.Algorithms.Services;
namespace QuickGraph.Algorithms.Cliques
{
public static class Extension
@dimart
dimart / 6490
Created December 18, 2014 18:39
patch from CodePlex
243d242
< public readonly TEdge SourceEdge;
248d246
< TEdge sourceEdge,
257d254
< this.SourceEdge = sourceEdge;
269c266,267
<
---
> var visitedEdges = new Dictionary<TEdge, int>(this.VisitedGraph.EdgeCount);
@dimart
dimart / 5696
Created December 18, 2014 18:36
patch from CodePlex
<?xml version="1.0"?>
<patch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.codeplex.com/schema/PatchSchema-1.0.xsd">
<update path="$/quickgraph/3.0/sources/QuickGraph.Graphviz/Dot/GraphvizVertex.cs" csid="36284" compression="deflate">7b0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1pRyMpqyqBymVWZV1mFkDM7Z28995777333nvvvfe6O51OJ/ff/z9cZmQBbPbOStrJniGAqsgfP358Hz8iltkib1bZNE9/Yl1M335eZ6v5mP+9LH4wflq1v3Hyi3/jJKVn3RTLi/T1ddPmi8P+R+OTqizzaVtUyyb29dM6u6I/Y1+dfXkDvPHn+TKviyk1k4ar9aQspum0zJomNdj+ZF63+TtpoDhz27q4zNo8bdoa0CdV21aL59kkL9PP0uW6LLXzSNtptVjky3a43awiROhH0bRV3RCq1HQn0o7GUtXpeVGW8ttn8sn4u/OizSPtJ1VVUvN3+ex18YOcmp9nZRNrGBJ3/KwibM+rTSgrKtQmROVJmU3fDpPioq7WqxsJVm4mq5mp59l1XlNj/HsTbau6oCnI2mHiFjTcFbHHak7/5A212t7d0PmrfFrVs7SWH9R9ftX5buvO0JTU+cW6zID00ISEzPh6nq2IOPzvZ7Hvxl8tm1U+Lc6LfDYwtKaY8aD2Y9NP3PGMWjCPYCD8wdbO+SjdOY+NQonavKW2m1iV5rN6m9+OQzrDaq/RAf/bGzI+vWHIykktkftNcTPHtdXqdrK8rje0UbL8YIh3OmL2sqKJ+T3SVdUU4MvhTpv15AIUsIoLD72b18usNI1YudFLpGy3n
[4 Debug 18:16:42.788] Looking for /home/dmitrii/Music/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not (WIGCD162J HSE-10001)/13. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:42.911] Looking for /home/dmitrii/Music/Arctic Monkeys/Live In Texas (7 June 2006)/10. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:42.991] Looking for /home/dmitrii/Music/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not (WIGCD162J HSE-10001)/13. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:43.079] Looking for /home/dmitrii/Music/Atmosphere/Sad Clown Bad Dub 7/10. (Doesn't Work No More).mp3 fingerprint
[4 Debug 18:16:43.170] Looking for /home/dmitrii/Music/Arctic Monkeys/Live In Texas (7 June 2006)/10. A Certain Romance.mp3 fingerprint
[4 Debug 18:16:43.760] Looking for /home/dmitrii/Music/Coldplay/Fix You (CD Single Promo) Europe/01. Fix You.mp3 fingerprint
[4 Debug 18:16:44.061] Looking for /home/dmitrii/Music/Daft Punk/Random Access Memories/08. Get Lucky (feat. Pharrell Williams).mp3 fingerprint
[4