Skip to content

Instantly share code, notes, and snippets.

View flschweiger's full-sized avatar

Frederik Schweiger flschweiger

View GitHub Profile
@flschweiger
flschweiger / AuthCallbacks.java
Last active October 30, 2016 10:11
A class which extends FingerprintManager.AuthenticationCallback.
class AuthCallbacks extends FingerprintManager.AuthenticationCallback {
@Override
public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
// Called when a fingerprint is recognized.
// The AuthenticationResult contains the CryptoObject which
// has been passed to the authenticate() method.
Cipher cipher = result.getCryptoObject().getCipher();
// Go on and use the 'unlocked' Cipher object...
@flschweiger
flschweiger / Flutter.format
Created February 16, 2019 20:19
Flutter color format file for Sip Color Picker
{
"name" : "Flutter",
"clipboardFormat" : {
"function" : "concat",
"y" : ")",
"x" : {
"x" : "const Color(0xFF",
"function" : "concat",
"y" : {
"x" : "hex[red]hex[green]hex[blue]",
@flschweiger
flschweiger / flutter.rb
Created July 12, 2020 00:10
A Homebrew formula for the Flutter SDK
class Flutter < Formula
desc "Google’s UI toolkit for mobile, web, and desktop from a single codebase"
homepage "https://flutter.dev"
url "https://storage.googleapis.com/flutter_infra/releases/releases_macos.json"
version "sdk"
require 'json'
bottle :unneeded