Skip to content

Instantly share code, notes, and snippets.

View edisinovcic's full-sized avatar
🎯
Focusing

Edi Sinovcic edisinovcic

🎯
Focusing
View GitHub Profile
@edisinovcic
edisinovcic / substrate-demo-module.rs
Created September 12, 2019 12:02 — forked from gautamdhameja/substrate-demo-module.rs
A minimal Substrate module. Implements a simple token transfer function with token balances stored in module storage.
/// A runtime module template with necessary imports
/// Feel free to remove or edit this file as needed.
/// If you change the name of this file, make sure to update its references in runtime/src/lib.rs
/// If you remove this file, you can remove those references
/// For more guidance on Substrate modules, see the example module
/// https://github.com/paritytech/substrate/blob/master/srml/example/src/lib.rs
@edisinovcic
edisinovcic / Camera2Activity.java
Created March 14, 2016 22:28 — forked from natevogt/Camera2Activity.java
Quick-n-Dirty Camera2 Activity
package com.natevogtphoto.camera2test;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.ImageFormat;
import android.graphics.SurfaceTexture;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCaptureSession.CaptureCallback;