Skip to content

Instantly share code, notes, and snippets.

View foxanna's full-sized avatar
💭
👩‍💻💙📱🇺🇦

Anna Leushchenko foxanna

💭
👩‍💻💙📱🇺🇦
View GitHub Profile
@nanopc
nanopc / gist:7b693607e673c4bcafed701b5d3f54ab
Last active May 12, 2019 09:11
SVG-VectorDrawable as Maps Marker icon on Android
BitmapDescriptor markerIcon = vectorToBitmap(R.drawable.vectordrawableicon,
ContextCompat.getColor(getApplicationContext(),
R.color.marker));
mMap.addMarker(new MarkerOptions()
.icon(markerIcon)
.position(LatLng())
);
private BitmapDescriptor vectorToBitmap(@DrawableRes int id, @ColorInt int color) {
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active April 19, 2024 16:21
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S