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
| package main | |
| import "time" | |
| import "fmt" | |
| import "sync" | |
| func quickping(done chan string, wg* sync.WaitGroup, sec time.Duration) { | |
| defer wg.Done() | |
| time.Sleep( time.Second * sec) | |
| done <- "DONE" |
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
| ritsz@ritsz-Lenovo:~/.lucene-6.6.0$ echo $CLASSPATH | |
| /home/ritsz/.lucene-6.6.0/core/lucene-core-6.6.0.jar:/home/ritsz/.lucene-6.6.0/demo/lucene-demo-6.6.0.jar:/home/ritsz/.lucene-6.6.0/queryparser/lucene-queryparser-6.6.0.jar:/home/ritsz/.lucene-6.6.0/analysis/common/lucene-analyzers-common-6.6.0.jar | |
| sudo java -cp $CLASSPATH org.apache.lucene.demo.IndexFiles -docs <DOCUMENT DIRECTORY TO SCAN> -index <INDEX PATH> | |
| java org.apache.lucene.demo.SearchFiles | |
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
| syntax on | |
| set encoding=utf-8 | |
| set autoindent | |
| set smartindent | |
| set cindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| "set expandtab | |
| set nu | |
| set rnu |
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
| class Tree : | |
| def __init__(self, data = None): | |
| self._data = data | |
| self._HD = 0 | |
| self._left = None | |
| self._right = None | |
| def show(self): | |
| return self._data | |
| def left(self): | |
| return self._left |
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
| background yes | |
| use_xft yes | |
| xftfont HandelGotD:size=9 | |
| xftalpha 0.5 | |
| update_interval 1.0 | |
| total_run_times 0 | |
| own_window yes | |
| own_window_type normal | |
| own_window_transparent yes | |
| own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
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
| #include <cv.h> | |
| #include <highgui.h> | |
| #include <ml.h> | |
| #include <math.h> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <stdio.h> | |
| #include <iostream> | |
| #include <cxcore.h> | |
| #include <cvaux.h> |
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 pygame import mixer,error,movie | |
| from random import randrange | |
| import commands as com | |
| import cv | |
| import sys | |
| name = "_ritszy_'s MediaPlayer y'all !! " | |
| image = "/home/ritesh/Pictures/acdc.jpg" | |
| prev = "" | |
| mute,paused = False,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
| unsigned __stdcall xnproThread(void *arg); | |
| extern double headPoint[3]; | |
| extern bool endit; |
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
| //--------------------------------------------------------------------------- | |
| // Includes | |
| //--------------------------------------------------------------------------- | |
| #include <XnCppWrapper.h> | |
| #include <opencv/highgui.h> | |
| #include <opencv/cv.h> | |
| #include <opencv2/imgproc/imgproc.hpp> | |
| using namespace xn; | |
| //--------------------------------------------------------------------------- |
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 cv2 | |
| import numpy as np | |
| import itertools | |
| lk_params = dict( winSize = (10, 10), | |
| maxLevel = 5, | |
| criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03)) | |
| feature_params = dict( maxCorners = 3000, | |
| qualityLevel = 0.5, |