I hereby claim:
- I am vuhung3990 on github.
- I am petertux (https://keybase.io/petertux) on keybase.
- I have a public key ASDIoJzOCbmTyRCKu6UlZ5leJZj9mM9n4ww8V-_FUw5vYwo
To claim this, I am signing this object:
| /** | |
| * get all video path on device | |
| * permission: READ_EXTERNAL_STORAGE | |
| * @param context | |
| * @return list file media | |
| */ | |
| public static List<File> getAllMediaFilesOnDevice(Context context) { | |
| List<File> files = new ArrayList<>(); | |
| try { |
| package com.grasys.shortupload.helper; | |
| import android.app.ProgressDialog; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.os.AsyncTask; | |
| import java.io.BufferedInputStream; | |
| import java.io.BufferedReader; | |
| import java.io.DataOutputStream; |
| var degrees2meters = function(lon,lat) { | |
| var x = lon * 20037508.34 / 180; | |
| var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180); | |
| y = y * 20037508.34 / 180; | |
| return [x, y] | |
| } | |
| //test | |
| lon= -77.035974 | |
| lat = 38.898717 |
| /* | |
| * Copyright (C) 2008 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| { | |
| "last_update": "2019/09/29 12:00:17", | |
| "data": [ | |
| { | |
| "index": 1, | |
| "flag": "vn", | |
| "city": "Ha Noi", | |
| "nation": "Viet Nam", | |
| "aqi": 180 | |
| }, |
I hereby claim:
To claim this, I am signing this object:
| public class ImageSliderAdapter extends FragmentPagerAdapter { | |
| private final List<Fragment> fragmentList = new ArrayList<>(); | |
| public ImageSliderAdapter(@NonNull FragmentManager fm) { | |
| super(fm); | |
| } | |
| @Override | |
| public Fragment getItem(int position) { | |
| return fragmentList.get(position); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title>MobileLiveChat: Activity</title> | |
| <link rel="self" href="http://10.64.100.201/projects/mobilelivechat/activity.atom?key=5817b30bb840c72acd2b1e4771c0022ea87e9c4e"/> | |
| <link rel="alternate" href="http://10.64.100.201/projects/mobilelivechat/activity"/> | |
| <id>http://10.64.100.201/</id> | |
| <icon>http://10.64.100.201/favicon.ico</icon> | |
| <updated>2019-04-26T10:28:57Z</updated> | |
| <author> | |
| <name>Redmine</name> |
| /** | |
| * get unique device id, reuire permission READ_PHONE_STATE | |
| * | |
| * @param context | |
| * @return unique id string | |
| */ | |
| public static String getDeviceId(Context context) { | |
| String deviceID = null; | |
| // TODO: check from pref if null -> generate |
| # EditorConfig is awesome: https://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*.{java,kt,xml}] | |
| end_of_line = lf | |
| insert_final_newline = true |