Skip to content

Instantly share code, notes, and snippets.

View RogerioDoCarmo's full-sized avatar

Rogério do Carmo RogerioDoCarmo

  • Presidente Prudente, SP, Brazil
  • 10:37 (UTC -03:00)
View GitHub Profile
@RogerioDoCarmo
RogerioDoCarmo / TabbedDialog2.java
Created December 12, 2018 00:00 — forked from kunmi/TabbedDialog2.java
Custom Tabbed DialogFragment with alertdialog title, positive and negative buttons
public class TabbedDialog2 extends DialogFragment {
TabLayout tabLayout;
ViewPager viewPager;
View v = null;
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
{
"transfer": "TRANSFER",
"transaction_feed": "TRANSACTION FEED",
"change_name": "CHANGE_NAME"
}
@RogerioDoCarmo
RogerioDoCarmo / GpsUtils.cs
Created January 30, 2023 18:01 — forked from govert/GpsUtils.cs
Convert WGS-84 geodetic locations (GPS readings) to Cartesian coordinates in a local tangent plane (Geodetic to ECEF to ENU)
using System;
using System.Diagnostics;
using static System.Math;
// Some helpers for converting GPS readings from the WGS84 geodetic system to a local North-East-Up cartesian axis.
// The implementation here is according to the paper:
// "Conversion of Geodetic coordinates to the Local Tangent Plane" Version 2.01.
// "The basic reference for this paper is J.Farrell & M.Barth 'The Global Positioning System & Inertial Navigation'"
// Also helpful is Wikipedia: http://en.wikipedia.org/wiki/Geodetic_datum