<style name="TopSheet_DialogAnimation">
<item name="android:windowEnterAnimation">@anim/slide_out_from_top</item>
<item name="android:windowExitAnimation">@anim/slide_back_to_top</item>
</style>
This file contains 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 <errno.h> | |
#include <fcntl.h> | |
#include <linux/videodev2.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <opencv2/core/core.hpp> |
This file contains 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 BattleshipActivity: AppCompatActivity() { | |
private lateinit var gridAdpater: UiCellAdapter | |
private lateinit var myBoard: Board | |
private lateinit var otherBoard: Board | |
private val width: Int = 10 | |
override fun onCreate(savedInstanceState: Bundle?) { |
This file contains 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
''' | |
Author : Jay Rambhia | |
Git : https://github.com/jayrambhia | |
gist : https://gist.github.com/jayrambhia | |
''' | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
from mechanize import Browser | |
import re |
This file contains 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
""" | |
Created on Fri Jan 27 21:48:58 2012 | |
@author: jay | |
""" | |
import json | |
import os | |
import gdbm | |
import time |
This file contains 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
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 `pkg-config opencv --cflags ` -I /usr/include/libusb-1.0 | |
OBJS = freenectopencvmat.o | |
LIBS = `pkg-config opencv --libs` -lfreenect | |
TARGET = kinectopencv | |
$(TARGET):$(OBJS) | |
$(CXX) -o $(TARGET) $(OBJS) $(LIBS) | |
all:$(TARGET) | |
clean: | |
rm -f $(OBJS) $(TARGET) |
This file contains 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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
OPENCV_LIB_TYPE:=STATIC | |
OPENCV_INSTALL_MODULES:=on | |
include /home/jay/Android_OpenCV/OpenCV-2.4.8-android-sdk/sdk/native/jni/OpenCV.mk | |
LOCAL_MODULE := tutorial02 |
This file contains 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
''' | |
Author: Jay Rambhia | |
email : jayrambhia777@gmail.com | |
A new script supporting both Mozilla Firefox and Google Chrome bookmarks: | |
https://github.com/jayrambhia/Bookmark-Manager | |
''' | |
import os | |
import json | |
import pickle | |
import gdbm |
This file contains 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
public class ColorDetector extends ResourceXmlDetector { | |
private static final String ID = "CustomColors"; | |
private static final String DESCRIPTION = "Custom colors used"; | |
private static final String EXPLANATION = "Use pre-defined (allowed) colors only"; | |
private static final Category CATEGORY = Category.CORRECTNESS; | |
private static final int PRIORITY = 6; | |
private static final Severity SEVERITY = Severity.ERROR; | |
public static final Issue ISSUE = Issue.create( |
This file contains 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
def update(self, images=None, labels=None, csvfile=None, delimiter=";"): | |
""" | |
**SUMMARY** | |
Update the training set of the face recognizer. | |
**PARAMETERS** | |
* *images* - A list of Images or ImageSet. All the images must be of | |
same size. |
NewerOlder