Skip to content

Instantly share code, notes, and snippets.

package com.example.crypto
import android.annotation.TargetApi
import android.content.Context
import android.os.Build
import android.security.KeyPairGeneratorSpec
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import java.io.FileNotFoundException
import java.math.BigInteger
@alapshin
alapshin / ProxyBottomSheetBehavior.java
Created March 18, 2017 15:00
BottomSheetBehavior with support for multiple callbacks
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetBehavior;
import android.util.AttributeSet;
import android.view.View;
import java.util.ArrayList;
/**
* Wrapper around {@link BottomSheetBehavior} with support for multiple callbacks.
int main(int argc, const char *argv[])
{
return 0;
}
@alapshin
alapshin / chtest.py
Created August 10, 2011 20:07
Test code highlighting with jekyll and gist-tag.rb
import bpy
from mathutils import Vector
listOfVectors = [((0,0,0,1)),((1,0,0,1)),((2,0,0,1)),((2,3,0,1)),((0,2,0,1))]
# create a spline curve from a number of points
def MakePolyLine(objname, curvename, cList):
curvedata = bpy.data.curves.new(name=curvename, type='CURVE')
curvedata.dimensions = '2D'