Skip to content

Instantly share code, notes, and snippets.

Avatar

Pradeepchowdary pratheepchowdhary

View GitHub Profile
@pratheepchowdhary
pratheepchowdhary / languages.json
Created May 17, 2020 — forked from joshuabaker/languages.json
List of languages with ISO 639-1 Alpha-2 codes in JSON.
View languages.json
[
{
"code": "aa",
"name": "Afar",
"native": "Afar"
},
{
"code": "ab",
"name": "Abkhazian",
"native": "Аҧсуа"
@pratheepchowdhary
pratheepchowdhary / feedfinder.py
Created Sep 21, 2019 — forked from Querela/feedfinder.py
[python][html][feed][rss] feed finder from url
View feedfinder.py
#!/usr/local/bin/python3
#
# feedfinder.py
#
# Utils for finding feeds
#
import sys
from datetime import datetime
View styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
View dimens.xml
<resources>
<dimen name="bottom_control_panel">220dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="spacing_large">16dp</dimen>
<dimen name="cover_width_height">230dp</dimen>
<dimen name="cover_mirror_margin_top">2dp</dimen>
<dimen name="cover_mirror_height">80dp</dimen>
View colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
<color name="primary">#00BCD4</color>
<color name="primary_dark">#0097A7</color>
<color name="accent">#FFEB3B</color>
<color name="album_title">#4c4c4c</color>
</resources>
View attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="SlidingUpPanelLayout">
<attr name="umanoPanelHeight" format="dimension" />
<attr name="umanoShadowHeight" format="dimension" />
<attr name="umanoParalaxOffset" format="dimension" />
<attr name="umanoFadeColor" format="color" />
<attr name="umanoFlingVelocity" format="integer" />
<attr name="umanoDragView" format="reference" />
View buld.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "in.androidhunt.musicDEmo"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.androidhunt.musicDEmo">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
View ImageUtil.java
package in.androidhunt.musicDEmo;
/**
* @author zhengken
* @time 2016/8/24 8:57
*/
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
View albuminfo_item.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white">
<TextView
android:id="@+id/album_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
You can’t perform that action at this time.