Skip to content

Instantly share code, notes, and snippets.

View mmoczkowski's full-sized avatar

Milosz Moczkowski mmoczkowski

  • Waymo
View GitHub Profile
IEnumerator Kupka_coroutine() {
while(true) {
if(x>0.9) {
for(float t=0;, t<1; t+=speed*Time.delta) {
//przesun kamere o 1 step
yield return null;
}
} else {
yield return null;
@mmoczkowski
mmoczkowski / gist:677456cc7605846fce9c
Last active August 29, 2015 14:13
Light rays shader
Shader "Custom/Light rays" {
Properties {
_MainTex ("Rays texture", 2D) = "white" {}
_speed ("Speed", Float) = 0.2
}
Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Blend SrcAlpha One
/* Java class */
public void FooHandler {
private long mHandle; // stores native pointer
/* Creates c++ object and returns it's pointer */
private native long init();
/* Calls "delete" on c++ object */
private native void destroy(long handle);
public void vote(int candidate) {
/*
switch(candidate) {
case Canditate.DZIERZAWSKI: ++mDzierzawskiVotes; break;
case Canditate.ERBEL: ++mErbelVotes; break;
case Canditate.GORAYSKI: ++mGorayskiVotes; break;
case Canditate.GRONKIEWICZ-WALTZ: ++mBitchVotes; break;
case Canditate.GUZIAŁ: ++mGuzialVotes; break;
case Canditate.NOSAL-IKONOWICZ: ++mIkonowiczVotes; break;
case Canditate.ROZENEK: ++mRozenekVotes; break;
Parts list for MAV:
Arduino UNO; 1;
MTK3339; 1; http://botland.com.pl/moduly-gps/2662-adafruit-ultimate-gps-modul-gps-mtk3339.html
MPU-6050; 1; http://botland.com.pl/akcelerometry-moduly/1632-mpu-605-modul-3-osiowy-akcelerometr-i-zyroskop-sparkfun.html
BMP180; 1; http://botland.com.pl/czujniki-cisnienia/2128-bmp180-barometr-czujnik-cisnienia-modul-sparkfun.html
ECS HobbyKing 20A Blue series; 4; electropark.pl
BDLC Redox 400/1400; 4; electropark.pl>