Skip to content

Instantly share code, notes, and snippets.

Avatar

Nitin S ns

View GitHub Profile
@ns
ns / lens_mt_protocol_b.patch
Created Apr 28, 2014
JDK 8 LENS: Multitouch Protocol B Patch
View lens_mt_protocol_b.patch
--- modules/graphics/src/main/native-glass/lens/input/udev/udevInput.c 2014-04-18 23:04:58.432000000 -0700
+++ /home/ns/Desktop/udevInput.c 2014-04-18 23:04:14.668000000 -0700
@@ -144,6 +144,11 @@
int pendingInputEventCount;
int pendingInputEventCapacity;
+ int touchSlotIDs[LENS_MAX_TOUCH_POINTS];
+ int pendingTouchSlotIDs[LENS_MAX_TOUCH_POINTS];
+ int pendingTouchHasChangedValues[LENS_MAX_TOUCH_POINTS];
+ int currentlyActiveSlotID;
View gist:1436242
public static int[][] detectVarianceCrossing(int[][] zeroCrossingImgData, int[][] secondOrderDrvImgData, int[][] gaussianImgData) {
int threshold = 60000;
int[][] result = new int[zeroCrossingImgData.length][zeroCrossingImgData[0].length];
for (int x = 0; x < zeroCrossingImgData.length; x++) {
for (int y = 0; y < zeroCrossingImgData[0].length; y++) {
int val = zeroCrossingImgData[y][x];
result[y][x] = 0;
if (val == 255) {
View github
|1|cioyfz+ko9FIm1bhzvm5svcRlc0=|0rmtU2CoPLOTaA9xWwaeRGgbXlU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|1|fGtyHJzEGdCMdoUhXFtExfLnK+o=|0REhNAKK7SXbotUzdH2HkFnVQH8= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
View gist:643969
public class Main
{
public static void main(String[] args) throws Exception {
ImdbReaderImpl iri = new ImdbReaderImpl();
ImdbParser ip = new ImdbParser(iri);
// ip.parseMovies("/path/to/file/movies.list.gz");
// this parses actors and actresses
ip.parseActors("/path/to/file/actors.list.gz", "/path/to/file/actresses.list.gz");
You can’t perform that action at this time.