Skip to content

Instantly share code, notes, and snippets.

View leruaa's full-sized avatar
🦀

Aurélien leruaa

🦀
View GitHub Profile
@Wollac
Wollac / ledger-api.md
Created April 6, 2018 06:55
Documentation of the APDU Ledger Nano S API

APDU Ledger API

  • Everything is encoded in Little-Endian without any padding or alignment.
  • Strings have a fixed length but can be null-terminated if they are shorter.
  • All integer numbers are always encoded in 8 bytes using two's complement representation.
  • Boolean values are encoded in one byte, with 0x00 meaning false and any other value meaning true.
  • IOTA addresses are always transferred in their 81 character base-27 encoding without checksum information.

Set the active IOTA seed

@leruaa
leruaa / DualFileHandleResolver.java
Last active August 29, 2015 14:00
A FileHandleResolver implementation witch tests if requested file exists in a path starting with an additional folder. This can be useful when using android flavors.
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.files.FileHandle;
public class DualFileHandleResolver implements FileHandleResolver {
private FileHandleResolver baseResolver;
private String additionalAssetsPath;
public DualFileHandleResolver(FileHandleResolver baseResolver, String additionalAssetsPath) {
this.baseResolver = baseResolver;
@chrisbanes
chrisbanes / FloatLabelLayout.java
Last active March 15, 2024 06:39
FloatLabelLayout
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software