Skip to content

Instantly share code, notes, and snippets.

@Bramengton
Bramengton / NavigationApps.java
Last active December 9, 2020 11:37
Open navigation app and build route by coordinates (google map, waze, maps.me, navitel. city guide, osmand, yandex navigation, 2gis)
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
@maulikhirani
maulikhirani / DateTimeDurationHelper.kt
Last active February 3, 2021 06:43
Format Date-Time Duration in words with Kotlin
/**
* Number of milliseconds in a standard second.
*/
const val MILLIS_PER_SECOND: Long = 1000
/**
* Number of milliseconds in a standard minute.
*/
const val MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND
@gabe565
gabe565 / change-arc-icon.md
Last active July 25, 2024 06:26
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy