Skip to content

Instantly share code, notes, and snippets.

View SKocur's full-sized avatar
:shipit:

Szymon Kocur SKocur

:shipit:
View GitHub Profile
@chanibal
chanibal / GyroTest
Last active November 10, 2020 18:38
Unity3d relative gyroscope demo
using UnityEngine;
/// <summary>
/// Gyroscope demo. Attach to a visible object or camera.
/// </summary>
public class GyroTest:MonoBehaviour {
Quaternion origin=Quaternion.identity;
@destan
destan / ParseRSAKeys.java
Last active July 9, 2024 08:22
Parse RSA public and private key pair from string in Java
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;