Skip to content

Instantly share code, notes, and snippets.

View gorodechnyj's full-sized avatar

Petr Gorodechnyj gorodechnyj

  • Webgrtanula LTD
View GitHub Profile
@gorodechnyj
gorodechnyj / gist:3e1eab917d4ea2bc77d14eacec57df60
Created July 15, 2019 12:07
Конфиг для хакинтоша а-ля iMac 2019
Материнская плата ASUS PRIME Z370M-PLUS II, LGA 1151v2, Intel Z370, mATX, Ret
https://www.citilink.ru/catalog/1100967/
CPU INTEL Core i5 8400, LGA 1151v2, OEM
https://www.citilink.ru/catalog/1030569/
CPU Cooler DEEPCOOL Theta 21 PWM
https://www.citilink.ru/catalog/computers_and_notebooks/parts/coolers/668261/
RAM CRUCIAL CT16G4DFD8266 DDR4 - 16Гб 2666, DIMM, Ret
@gorodechnyj
gorodechnyj / skeleton_activity_BaseActivity.java
Created April 19, 2016 14:44
Skeleton classes of my applications
package ch.dotpay.skeleton.activity;
import android.Manifest;
import android.animation.Animator;
import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
@gorodechnyj
gorodechnyj / SelectAddressFragment.java
Created April 19, 2016 14:39
Opens fragment to select address by clicking on the map. Uses Google geocoder to get address string from coordinates
package ch.dotpay.ui.settings.fragment;
import android.Manifest;
import android.content.pm.PackageManager;
import android.location.Geocoder;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
package ch.dotpay.db.loader;
/**
* Created by gorodechnyj on 2/25/2016.
*/
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;