Skip to content

Instantly share code, notes, and snippets.

👨‍🎓
Learning...

Mohammad Laif mzdhr

👨‍🎓
Learning...
Block or report user

Report or block mzdhr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View textviewstyles
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="الفقرة الاولى من الستايل الموحد"
style="@style/textViewStyle"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
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 android-circle-textview.xml
circle_background_views.xml:
<?xml version="1.0" encoding="utf-8"?>
<!-- Background circle for the magnitude value -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#ffffff" />
<stroke android:width="2dp"
android:color="#437c32" />
View background_radius_with_gradient_android
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="#17a452" />
View background_gradient.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#f9d34c"
android:endColor="#f25019"
android:angle="270"
android:type="linear"/>
</shape>
View glideGifAnimation
Glide.with(this)
.load(R.drawable.src_anim)
.into(mImageViewGif);
View glidedependencies
dependencies {
compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
compile 'com.android.support:support-v4:25.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
}
View python-cheat-sheet-basic.py
#!/usr/bin/env python
"""Basic Python Cheat Sheet by Filip Kral on 2015/02/16"""
"""
Python is a cross-platform, interpreted, object-oriented programming language.
That means you can run it on Linux, Windows, Mac, and other platforms,
you don't need to compile your code to execute it because it is compiled on
the fly, and you can use classes and objects.
@mzdhr
mzdhr / .gitignore
Created Feb 12, 2016 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@mzdhr
mzdhr / 0_reuse_code.js
Created Dec 3, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.