Skip to content

Instantly share code, notes, and snippets.

View biokys's full-sized avatar

Jan Muller biokys

View GitHub Profile
@biokys
biokys / radar_client.pde
Last active May 17, 2020 04:40
Sources for ultrasonic range radar
import processing.serial.*;
int SIDE_LENGTH = 1000;
int ANGLE_BOUNDS = 80;
int ANGLE_STEP = 2;
int HISTORY_SIZE = 10;
int POINTS_HISTORY_SIZE = 500;
int MAX_DISTANCE = 100;
int angle;
@biokys
biokys / card_layout
Created September 5, 2013 21:09
Card layout with bottom shadow
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle"
android:dither="true">
<corners android:radius="@dimen/card_corner_radius"/>
<solid android:color="#bbb" />
</shape>
@biokys
biokys / cookie.java
Last active December 15, 2015 11:29
package controllers;
import models.Language;
import play.Logger;
import play.Play;
import play.cache.Cache;
import play.i18n.Lang;
import play.mvc.Before;
import play.mvc.Controller;
import play.mvc.Http;