Skip to content

Instantly share code, notes, and snippets.

View saeid-rez's full-sized avatar

Saeid Rezaei saeid-rez

View GitHub Profile
@Antarix
Antarix / CardView.h
Last active January 7, 2020 12:11
Simple CardView for iOS Objective-C
#import <UIKit/UIKit.h>
@interface CardView : UIView
@end
@artem-zinnatullin
artem-zinnatullin / MyApp.java
Last active January 15, 2023 13:04
If you need to set one font for all TextViews in android application you can use this solution. It will override ALL TextView's typefaces, includes action bar and other standard components, but EditText's password font won't be overriden.
public class MyApp extends Application {
@Override
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
}
}
@bregenspan
bregenspan / gist:5637609
Created May 23, 2013 16:59
Android Studio Logcat Filter to exclude spammy messages
^((?!wpa_supplicant|NetStatUtil).*)$
@emil2k
emil2k / Connectivity.java
Last active October 4, 2025 03:26
Android utility class for checking device's network connectivity and speed.
/*
* Copyright (c) 2017 Emil Davtyan
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions: