Skip to content

Instantly share code, notes, and snippets.

@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active May 1, 2024 21:12
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@jgornick
jgornick / coding-nomenclature.md
Last active April 21, 2022 15:05
Development: Coding Nomenclature

Complements

  • Acknowledge/Ignore
  • Acquire/Release
  • Add/Remove
  • Allow/Deny
  • Before/After
  • Begin/End
  • Create/Destroy
  • Enable/Disable
@jgornick
jgornick / gist:226283
Created November 4, 2009 18:41
JS: Get Now UTC Date
var now = new Date();
var offset = -now.getTimezoneOffset() * 60 * 1000;
var nowUTC = new Date(+now - offset);
@jgornick
jgornick / format-duration.js
Last active September 3, 2015 22:25
PHP: Format Duration
var duration = 3600;
duration = parseInt(Math.abs(duration));
duration =
String('00' + parseInt(duration / 3600)).slice(-2) + ':' +
String('00' + parseInt((duration / 60) % 60)).slice(-2) + ':' +
String('00' + parseInt(duration % 60)).slice(-2);