Skip to content

Instantly share code, notes, and snippets.

View WildOrangutan's full-sized avatar
💭
チェヴァプチチ

WildOrangutan

💭
チェヴァプチチ
View GitHub Profile
@WildOrangutan
WildOrangutan / count_areas.lsp
Last active April 18, 2021 20:28
autolisp script, for counting objects with very similar areas
(defun C:COUNTAREAS (/ areas roundedAreas counts)
(setq areas (getAreas))
(setq roundedAreas (roundListTo areas 0))
(setq areaCounts (countItems roundedAreas))
(formatCounts areaCounts)
)
(defun formatCounts (areaCounts / ac area count out)
(setq out "")
(foreach ac areaCounts
@WildOrangutan
WildOrangutan / ExtendedGestureDetector.java
Created August 9, 2018 18:09
Extended GestureDetector functionality. Adds onScrollEnd method.
import android.content.Context;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.view.GestureDetector;
import android.view.MotionEvent;
/**
* Improved android's {@link android.view.GestureDetector}
*
* Features:
@WildOrangutan
WildOrangutan / MainActivity.java
Created April 20, 2018 06:54
UVCC dual camera capture quick example
/*
* UVCCamera
* library and sample to access to UVC web camera on non-rooted Android device
*
* Copyright (c) 2014-2017 saki t_saki@serenegiant.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*